restructered authorized_key

The module "authorized_key" cannot use a file as key.
So it has to be iterated upon with "with_file".
This commit is contained in:
rene
2022-02-17 18:06:40 +01:00
parent 36514644f1
commit 23fd234801

View File

@@ -19,8 +19,10 @@
authorized_key:
user: root
state: present
key: public_keys/backup_ed25519.pub
key: '{{ item }}'
key_options: 'from="192.168.1.240",command="~/validate-rsync.sh"'
with_file:
- public_keys/backup_ed25519.pub
- name: users | root | create script directories
file: