mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-10 06:51:04 +01:00
10 lines
391 B
YAML
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 }
|