changed name and added optional ip var
This commit is contained in:
1 parent
eb5afc862c
commit
b11817a1dd
3 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user