From d4291de61629cec38609c00b4f58a05129bfa304 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Mon, 18 Oct 2021 12:51:11 +0200 Subject: [PATCH] Made backups for docker obligatory --- roles/native-docker-volume-backup/meta/main.yml | 2 +- roles/native-docker/meta/main.yml | 2 ++ site.yml | 12 ------------ 3 files changed, 3 insertions(+), 13 deletions(-) create mode 100644 roles/native-docker/meta/main.yml diff --git a/roles/native-docker-volume-backup/meta/main.yml b/roles/native-docker-volume-backup/meta/main.yml index ec276173..b2af6a7d 100644 --- a/roles/native-docker-volume-backup/meta/main.yml +++ b/roles/native-docker-volume-backup/meta/main.yml @@ -1,3 +1,3 @@ dependencies: - - native-docker - native-git + - native-primary-backup diff --git a/roles/native-docker/meta/main.yml b/roles/native-docker/meta/main.yml new file mode 100644 index 00000000..f5181bdc --- /dev/null +++ b/roles/native-docker/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: + - native-docker-volume-backup diff --git a/site.yml b/site.yml index 56c4f925..8f1fc233 100644 --- a/site.yml +++ b/site.yml @@ -17,18 +17,6 @@ become: true roles: - native-wireguard-behind-firewall -- name: setup primary backup hosts - hosts: primary_backup_hosts - become: true - pre_tasks: - - name: "check if docker is installed" - shell: pacman -Q docker - register: pacman_q_docker - ignore_errors: yes - roles: - - role: native-docker-volume-backup - when: "'error:' not in pacman_q_docker.stderr" - - role: native-primary-backup - name: setup replica backup hosts hosts: replica_backup_hosts become: true