hostvars not needed anymore for backup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% for host in hostvars[inventory_hostname]['hosts_to_backup'] %}
|
||||
{% for host in hosts_to_backup %}
|
||||
Host {{ host.hostname }}_backup
|
||||
Hostname {{ host.ip | default(host.fqdn) }}
|
||||
User root
|
||||
|
||||
Reference in New Issue
Block a user