changed name and added optional ip var
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
hosts_to_backup:
|
hosts_to_backup:
|
||||||
- { hostname: "mail", fqdn: "mail.universe.local" }
|
- { hostname: "mailcow", fqdn: "mewissen.site", ip: "192.168.3.8" }
|
||||||
- { hostname: "jitsi", fqdn: "mewimeet.de" }
|
- { hostname: "jitsi", fqdn: "mewimeet.de", ip: "192.168.3.10" }
|
||||||
- { hostname: "mewitoot", fqdn: "mewitoot.de" }
|
- { hostname: "mewitoot", fqdn: "mewitoot.de", ip: "192.168.3.11" }
|
||||||
- { hostname: "coruscant", fqdn: "coruscant.universe.local" }
|
- { hostname: "coruscant", fqdn: "coruscant.universe.local" }
|
||||||
- { hostname: "ns1", fqdn: "ns1.universe.local" }
|
- { hostname: "ns1", fqdn: "ns1.universe.local" }
|
||||||
- { hostname: "docker01", fqdn: "docker01.universe.local" }
|
- { hostname: "docker01", fqdn: "docker01.universe.local" }
|
||||||
|
|||||||
@@ -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
|
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
|
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
|
coruscant;/opt/backup/config/coruscant_includes.txt;/opt/backup/config/coruscant_excludes.txt
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% for host in hostvars[inventory_hostname]['hosts_to_backup'] %}
|
{% for host in hostvars[inventory_hostname]['hosts_to_backup'] %}
|
||||||
Host {{ host.hostname }}_backup
|
Host {{ host.hostname }}_backup
|
||||||
Hostname {{ host.fqdn }}
|
Hostname {{ host.ip | default(host.fqdn) }}
|
||||||
User root
|
User root
|
||||||
IdentityFile ~/.ssh/backup_ed25519
|
IdentityFile ~/.ssh/backup_ed25519
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
|
|||||||
Reference in New Issue
Block a user