Implemented when condition for native-docker-volume-backup

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-31 11:40:19 +01:00
parent af04c9fccf
commit baeef4aad2

View File

@ -8,8 +8,14 @@
- native-user-alarm
- name: setup primary_backup_hosts
hosts: primary_backup_hosts
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"
- name: setup replica backup hosts
hosts: replica_backup_hosts
roles: