Add openssh known_hosts population
This commit is contained in:
@@ -17,9 +17,13 @@
|
||||
notify: reload openssh
|
||||
|
||||
- name: openssh - root keys
|
||||
authorized_key: user="root" key="{{ common_openssh_keys_root | join("\n") }}" exclusive=yes
|
||||
authorized_key: user=root key={{ common_openssh_keys_root | join("\n") }} exclusive=yes
|
||||
when: common_openssh_keys_root
|
||||
tags: 'ssh-keys'
|
||||
|
||||
- name: openssh - host keys
|
||||
copy: src=known_hosts dest=/etc/ssh/ssh_known_hosts
|
||||
failed_when: false
|
||||
|
||||
- name: openssh - truncate /etc/motd
|
||||
copy: dest=/etc/motd content='' force=yes
|
||||
|
||||
Reference in New Issue
Block a user