14 lines
317 B
YAML
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
|