Added draft for update-docker

This commit is contained in:
2023-11-16 12:26:27 +01:00
parent 64d8098612
commit f091721402
9 changed files with 82 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
# update
starts all of the different system update roles based on conditions

View 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 }