mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-25 11:35:03 +01:00
20 lines
508 B
YAML
20 lines
508 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'
|
|
|
|
- name: "Update with apt"
|
|
include_role:
|
|
name: update-apt
|
|
when: ansible_distribution == "Debian"
|
|
|
|
- name: "Update Docker Images"
|
|
include_role:
|
|
name: update-docker
|
|
when: docker_compose_directory_stat.stat.exists |