mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
20 lines
598 B
YAML
20 lines
598 B
YAML
---
|
|
- 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 |