--- - 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