create backup config dynamically
This commit is contained in:
3
roles/backup/templates/backup_remote.j2
Normal file
3
roles/backup/templates/backup_remote.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{% for host in hostvars[inventory_hostname]['hosts_to_backup'] %}
|
||||
{{ host.hostname }};/opt/backup/config/{{ host.hostname }}_includes.txt;/opt/backup/config/{{ host.hostname }}_excludes.txt
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user