From 4d25261bb697805e60f0dea4236a9c8fe41e73f3 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 11 Dec 2023 08:32:14 -0800 Subject: [PATCH] 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 --- playbooks/roles/borg-backup/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/borg-backup/tasks/main.yaml b/playbooks/roles/borg-backup/tasks/main.yaml index b1ee8a5289..3aabbcc983 100644 --- a/playbooks/roles/borg-backup/tasks/main.yaml +++ b/playbooks/roles/borg-backup/tasks/main.yaml @@ -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