You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
426 B
17 lines
426 B
---
|
|
- name: Create /home/vagrant/.ssh directory
|
|
ansible.builtin.file:
|
|
path: /home/vagrant/.ssh
|
|
state: directory
|
|
owner: vagrant
|
|
group: vagrant
|
|
mode: 0o700
|
|
|
|
- name: Download Vagrant public SSH key
|
|
ansible.builtin.get_url:
|
|
url: https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub
|
|
dest: /home/vagrant/.ssh/authorized_keys
|
|
owner: vagrant
|
|
group: vagrant
|
|
mode: 0o600
|