diff options
Diffstat (limited to 'roles/users/tasks')
-rw-r--r-- | roles/users/tasks/main.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 944c085..83e43f8 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -22,9 +22,9 @@ mode: u+rw,g-wx,o-rwx - name: Update authorized_keys for Dmitry Ilvokhin - ansible.builtin.copy: - src: files/authorized_keys - dest: /home/d/.ssh/authorized_keys - owner: d - group: d - mode: u+rw,g-rwx,o-rwx + ansible.posix.authorized_key: + user: d + state: present + key: '{{ item }}' + with_file: + - misc/pubkeys/d.pub |