tasks for backup server

This commit is contained in:
2022-11-22 16:28:24 +01:00
parent 90f85fc4f8
commit 7dd899df04
7 changed files with 109 additions and 17 deletions

View 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 %}