mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-10 12:27:15 +02:00
Added draft for update-docker
This commit is contained in:
10
roles/update/meta/main.yml
Normal file
10
roles/update/meta/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
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 }
|
Reference in New Issue
Block a user