diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-01-20 17:51:06 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-01-20 17:51:06 +0000 |
commit | de7032e7921ad11807a4a6a6a5e41d12a0e943c3 (patch) | |
tree | 51f1a5400330012fd563872735721f1d40cee1c8 /roles/users | |
parent | 9b5699db8aab0aeabd4bf6fe388114a710fec41b (diff) | |
download | infra-de7032e7921ad11807a4a6a6a5e41d12a0e943c3.tar.gz infra-de7032e7921ad11807a4a6a6a5e41d12a0e943c3.tar.bz2 infra-de7032e7921ad11807a4a6a6a5e41d12a0e943c3.zip |
Fix public key path in user role
Diffstat (limited to 'roles/users')
-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 |