Assure .ssh dir BEFORE we have to write something into it

This commit is contained in:
Salt 2020-07-05 08:46:47 -05:00
parent f96ecc5870
commit 4b9ea3b3f6

View File

@ -11,6 +11,11 @@
become: yes become: yes
- name: Bootstrap user - name: Bootstrap user
block: block:
- name: Assure .ssh directory
file:
path: $HOME/.ssh
state: directory
mode: "0700"
- name: Generate keypair - name: Generate keypair
openssh_keypair: openssh_keypair:
comment: "{{ user_username }}@{{ inventory_hostname }}" comment: "{{ user_username }}@{{ inventory_hostname }}"