Don't add keys to root by default

This commit is contained in:
Reynir Björnsson 2019-11-28 13:50:52 +01:00
parent 2e5dc7158d
commit 90090f4bc9

View file

@ -13,9 +13,3 @@
user: "{{ item.key }}" user: "{{ item.key }}"
key: "{{ item.value.key }}" key: "{{ item.value.key }}"
with_dict: "{{ users | default({}) }}" with_dict: "{{ users | default({}) }}"
- name: "Add ssh authorized_keys to root user"
authorized_key:
user: "root"
key: "{{ item.value.key }}"
with_dict: "{{ users | default({}) }}"