Improve SSH key management

This commit is contained in:
Daniel A. Maierhofer
2018-07-28 19:04:26 +02:00
parent 640611e6db
commit eec87d3b33

View File

@@ -26,7 +26,8 @@
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={{ item.key }} state={{ item.state | default('present') }}"
with_items: "{{ common_openssh_keys_root }}"
when: common_openssh_keys_root
tags: 'ssh-keys'