Robert Kaussow
07ceca9e63
All checks were successful
continuous-integration/drone/push Build is passing
14 lines
325 B
YAML
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
|