Update file main.yml
This commit is contained in:
parent
cc23b65a20
commit
2aaf483289
@ -176,13 +176,13 @@
|
||||
become: yes
|
||||
tags: [deploy_base, users]
|
||||
|
||||
- name: Add authorized keys for zailon
|
||||
authorized_key:
|
||||
user: zailon
|
||||
state: present
|
||||
key: "{{ item }}"
|
||||
exclusive: yes
|
||||
loop: "{{ ssh_public_keys }}"
|
||||
- name: Deploy authorized_keys for zailon
|
||||
copy:
|
||||
content: "{{ ssh_public_keys | join('\n') }}\n"
|
||||
dest: /home/zailon/.ssh/authorized_keys
|
||||
owner: zailon
|
||||
group: zailon
|
||||
mode: '0600'
|
||||
become: yes
|
||||
tags: [deploy_base, users]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user