create backup config dynamically

This commit is contained in:
2024-09-24 11:03:14 +02:00
parent 69ccca721f
commit e4116f9f94
2 changed files with 8 additions and 0 deletions

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 %}