Ensure root .ssh directory exists

This commit is contained in:
Alexander Ross 2017-04-16 08:48:35 +01:00
parent 04b61ca3d2
commit 439e23935a

View file

@ -53,6 +53,9 @@
ssh-keyscan {{ IP_subject_alt_name }} 2>/dev/null
register: ssh_fingerprints
- name: Ensure root .ssh directory exists
file: path=/root/.ssh state=directory mode=0700
- name: The known_hosts file created
template: src=known_hosts.j2 dest=/root/.ssh/{{ IP_subject_alt_name }}_known_hosts