mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 02:45:02 +01:00
Made backups for docker obligatory
This commit is contained in:
parent
cbb136d93a
commit
d4291de616
@ -1,3 +1,3 @@
|
||||
dependencies:
|
||||
- native-docker
|
||||
- native-git
|
||||
- native-primary-backup
|
||||
|
2
roles/native-docker/meta/main.yml
Normal file
2
roles/native-docker/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- native-docker-volume-backup
|
12
site.yml
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user