tasks for backup server
This commit is contained in:
7
roles/backup/templates/ssh_config.j2
Normal file
7
roles/backup/templates/ssh_config.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
{% for host in hostvars[inventory_name]['hosts_to_backup'] %}
|
||||
Host {{ host.hostname }}_backup
|
||||
Hostname {{ host.fqdn }}
|
||||
User root
|
||||
IdentityFile ~/.ssh/backup_ed25519
|
||||
IdentitiesOnly yes
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user