Pubkeys should be added to the root user as well.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-06-23 14:44:00 +02:00
parent 21df400568
commit 1bb6ea5eff

View file

@ -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({}) }}"