Force borg backups to run over ipv4

We've recently been unable to backup from gitea09 to the vexxhost backup
server. Testing indicates that ipv6 connectivity between the two servers
is the likely issue. Address this by forcing all backups to run over
ipv4 instead of ipv6. We could restrict this to only gitea09 if we
wanted to and/or only when the vexxhost server is the target, but this
is the simplest way to make the change in the existing configuration
management.

Change-Id: Ic868ded7d923b822d757a57416f879fd59c003e9
This commit is contained in:
Clark Boylan 2023-12-11 08:32:14 -08:00
parent 6ba06de8e4
commit 4d25261bb6

@ -38,6 +38,8 @@
HostName {{ item }}
IdentityFile /root/.ssh/id_borg_backup_ed25519
User {{ borg_username }}
# Force ipv4 due to problems connecting to vexxhost over ipv6
AddressFamily inet
mode: 0600
marker: '# {mark} ANSIBLE MANAGED BLOCK borg-backup {{ item }}'
with_inventory_hostnames: borg-backup-server