diff --git a/tasks/openssh.yml b/tasks/openssh.yml index a52a4ff..cec7696 100644 --- a/tasks/openssh.yml +++ b/tasks/openssh.yml @@ -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