|
@@ -55,8 +55,8 @@ |
|
|
with_items: "{{ users.keys() }}" |
|
|
with_items: "{{ users.keys() }}" |
|
|
|
|
|
|
|
|
- name: ssh authorized keys |
|
|
- name: ssh authorized keys |
|
|
copy: |
|
|
|
|
|
content: "{{ users[item].authorized_keys }}" |
|
|
|
|
|
|
|
|
template: |
|
|
|
|
|
src: ssh_authorized_keys.j2 |
|
|
dest: "{{ users[item].home | default('/home/'+item) }}/.ssh/authorized_keys" |
|
|
dest: "{{ users[item].home | default('/home/'+item) }}/.ssh/authorized_keys" |
|
|
owner: "{{ item }}" |
|
|
owner: "{{ item }}" |
|
|
group: "{{ item }}" |
|
|
group: "{{ item }}" |
|
|