computer-playbook/roles/update/meta/main.yml

10 lines
391 B
YAML

tasks:
- name: "Check if {{path_docker_compose_files}} directory exists"
stat:
path: {{path_docker_compose_files}}
register: docker_compose_directory_stat
roles:
- { role: update-pacman, when: ansible_distribution == 'Archlinux' }
- { role: update-apt, when: ansible_distribution == "Debian" }
- { role: update-docker, when: docker_compose_directory_stat.stat.exists }