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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user