From 9a38ea513ebed8b28873763b1d43d5b3c6be325b Mon Sep 17 00:00:00 2001 From: Elias Backmund Date: Mon, 10 Jul 2023 12:53:27 +0200 Subject: [PATCH 1/3] On new containers the refresh time of 86400 seconds doesn't work --- molecule/default/prepare.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index ab670f1..8e2eb15 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -11,6 +11,14 @@ backup_server: backupserver restic_client_use_lvm: false # doesn't work inside container, would use host's LVM + pre_tasks: + - name: Force update package cache (Debian) + ansible.builtin.apt: + update_cache: true + become: true + when: + - "ansible_os_family == 'Debian'" + roles: - role: fifty2technology.restic_client @@ -22,5 +30,13 @@ backup_server: backupserver restic_server_binary_install_dir: /tmp + pre_tasks: + - name: Force update package cache (Debian) + ansible.builtin.apt: + update_cache: true + become: true + when: + - "ansible_os_family == 'Debian'" + roles: - role: fifty2technology.restic_server From d2a7ab3251f2d58bcf04e7fe20fbaa6aa24c74f1 Mon Sep 17 00:00:00 2001 From: Elias Backmund Date: Mon, 10 Jul 2023 12:53:58 +0200 Subject: [PATCH 2/3] This is handled by the restic_client role where necessary --- molecule/default/prepare.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 8e2eb15..99bf52b 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -5,7 +5,6 @@ gather_facts: true gather_subset: - hardware - become: true vars: backup_server: backupserver From 9cb32f0fb0ede8638253dcf80719c8f78c698073 Mon Sep 17 00:00:00 2001 From: Elias Backmund Date: Mon, 10 Jul 2023 12:54:34 +0200 Subject: [PATCH 3/3] Fix copy/paste error. Oops, this shouldn't be here, we want to download binaries from GitHub here. --- molecule/default/prepare.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 99bf52b..ebc070c 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -27,7 +27,6 @@ vars: backup_server: backupserver - restic_server_binary_install_dir: /tmp pre_tasks: - name: Force update package cache (Debian)