create backup config dynamically

This commit is contained in:
rene committed 2024-09-24 11:03:14 +02:00
1 parent 69ccca721f
commit e4116f9f94
2 files changed
+8

No files matched your search

+3
View 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 %}