Skip to content

Commit

Permalink
Run SSH key generate task for local provision only (roots#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw authored and paulbrzeski committed Mar 3, 2023
1 parent 2aa16a8 commit 17e60fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@

- name: Generate SSH key for vagrant user for ansible_local provisioning
user:
name: vagrant
name: "{{ ansible_user }}"
generate_ssh_key: yes
when: vagrant_local_provisioning | default(false)

Expand Down

0 comments on commit 17e60fc

Please sign in to comment.