mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
Optimized different roles
This commit is contained in:
@@ -1 +1,3 @@
|
||||
command="/home/backup/ssh-wrapper.sh" {{authorized_keys}}
|
||||
{% for authorized_key in authorized_keys_list %}
|
||||
command="/home/backup/ssh-wrapper.sh" {{authorized_key}}
|
||||
{% endfor %}
|
||||
|
@@ -1,2 +1,2 @@
|
||||
authorized_keys_path: "{{ inventory_dir }}/files/{{ inventory_hostname }}/home/backup/.ssh/authorized_keys"
|
||||
authorized_keys: "{{ lookup('file', authorized_keys_path) }}"
|
||||
authorized_keys_list: "{{ lookup('file', authorized_keys_path).splitlines() }}"
|
||||
|
Reference in New Issue
Block a user