xoxys.users/tasks/users_keys.yml
Robert Kaussow 07ceca9e63
All checks were successful
continuous-integration/drone/push Build is passing
fix variable name
2019-11-04 00:48:55 +01:00

14 lines
325 B
YAML

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