xoxys.users/tasks/users_keys.yml
Robert Kaussow 9b1612e356
Some checks failed
continuous-integration/drone/push Build is failing
initial commit
2019-11-03 18:19:53 +01:00

14 lines
317 B
YAML

---
- block:
- name: Set authorized_key for ssh users
authorized_key:
user: "{{ item.name }}"
key: "{{ item.key }}"
state: present
loop: "{{ users_users }}"
loop_control:
label: "{{ item.name }}"
when: item.key is defined
become: True
become_user: root