changed name and added optional ip var

This commit is contained in:
2022-11-23 09:52:13 +01:00
parent eb5afc862c
commit b11817a1dd
3 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
mail;/opt/backup/config/mail_includes.txt;/opt/backup/config/mail_excludes.txt
mailcow;/opt/backup/config/mailcow_includes.txt;/opt/backup/config/mailcow_excludes.txt
jitsi;/opt/backup/config/jitsi_includes.txt;/opt/backup/config/jitsi_excludes.txt
mewitoot;/opt/backup/config/mewitoot_includes.txt;/opt/backup/config/mewitoot_excludes.txt
coruscant;/opt/backup/config/coruscant_includes.txt;/opt/backup/config/coruscant_excludes.txt

View File

@@ -1,6 +1,6 @@
{% for host in hostvars[inventory_hostname]['hosts_to_backup'] %}
Host {{ host.hostname }}_backup
Hostname {{ host.fqdn }}
Hostname {{ host.ip | default(host.fqdn) }}
User root
IdentityFile ~/.ssh/backup_ed25519
IdentitiesOnly yes