mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added draft for update-docker
This commit is contained in:
2
roles/update/meta/README.md
Normal file
2
roles/update/meta/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# update
|
||||
starts all of the different system update roles based on conditions
|
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