Assure .ssh dir BEFORE we have to write something into it
This commit is contained in:
parent
f96ecc5870
commit
4b9ea3b3f6
@ -11,6 +11,11 @@
|
||||
become: yes
|
||||
- name: Bootstrap user
|
||||
block:
|
||||
- name: Assure .ssh directory
|
||||
file:
|
||||
path: $HOME/.ssh
|
||||
state: directory
|
||||
mode: "0700"
|
||||
- name: Generate keypair
|
||||
openssh_keypair:
|
||||
comment: "{{ user_username }}@{{ inventory_hostname }}"
|
||||
|
Loading…
Reference in New Issue
Block a user