Removed mode parameter as it should be automatically handled by the module
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
key: "{{ item }}"
|
key: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
path: /home/{{ target_user }}/.ssh/authorized_keys
|
path: /home/{{ target_user }}/.ssh/authorized_keys
|
||||||
mode: '0600'
|
|
||||||
loop: "{{ my_public_keys }}"
|
loop: "{{ my_public_keys }}"
|
||||||
# ansible.posix.authorized_key will create an .ssh directory with the correct permissions.
|
# ansible.posix.authorized_key will create an .ssh directory with the correct permissions.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user