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
1 changed files with 6 additions and 0 deletions

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