Add openssh known_hosts population

This commit is contained in:
Daniel A. Maierhofer
2018-03-05 01:56:02 +01:00
parent 725b10c389
commit c991c2adef

View File

@@ -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