Made backups for docker obligatory

This commit is contained in:
Kevin Veen-Birkenbach 2021-10-18 12:51:11 +02:00
parent cbb136d93a
commit d4291de616
3 changed files with 3 additions and 13 deletions

View File

@ -1,3 +1,3 @@
dependencies:
- native-docker
- native-git
- native-primary-backup

View File

@ -0,0 +1,2 @@
dependencies:
- native-docker-volume-backup

View File

@ -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