mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-04 02:53:06 +02:00
Ensure root .ssh directory exists
This commit is contained in:
parent
04b61ca3d2
commit
439e23935a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue