Improve SSH key management
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user