mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Solved bugs
This commit is contained in:
20
roles/update/tasks/main.yml
Normal file
20
roles/update/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: "Check if {{ path_docker_compose_files }} directory exists"
|
||||
stat:
|
||||
path: "{{ path_docker_compose_files }}"
|
||||
register: docker_compose_directory_stat
|
||||
|
||||
- name: "Update with pacman"
|
||||
include_role:
|
||||
name: update-pacman
|
||||
when: ansible_distribution == 'Archlinux' and docker_compose_directory_stat.stat.exists
|
||||
|
||||
- name: "Update with apt"
|
||||
include_role:
|
||||
name: update-apt
|
||||
when: ansible_distribution == "Debian" and docker_compose_directory_stat.stat.exists
|
||||
|
||||
- name: "Update Docker Images"
|
||||
include_role:
|
||||
name: update-docker
|
||||
when: docker_compose_directory_stat.stat.exists
|
Reference in New Issue
Block a user