Pubkeys should be added to the root user as well.
This commit is contained in:
parent
21df400568
commit
1bb6ea5eff
|
@ -13,3 +13,9 @@
|
|||
user: "{{ item.key }}"
|
||||
key: "{{ item.value.key }}"
|
||||
with_dict: "{{ users | default({}) }}"
|
||||
|
||||
- name: "Add ssh authorized_keys to root user"
|
||||
authorized_key:
|
||||
user: "root"
|
||||
key: "{{ item.value.key }}"
|
||||
with_dict: "{{ users | default({}) }}"
|
||||
|
|
Loading…
Reference in a new issue