forked from msvsphere/cloud-images
17 lines
426 B
17 lines
426 B
2 years ago
|
---
|
||
|
- 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
|