computer-playbook/roles/update/tasks/main.yml

20 lines
508 B
YAML
Raw Normal View History

2023-11-16 16:40:45 +01:00
---
- 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
2023-11-17 00:45:37 +01:00
when: ansible_distribution == 'Archlinux'
2023-11-16 16:40:45 +01:00
- name: "Update with apt"
include_role:
name: update-apt
2023-11-17 00:45:37 +01:00
when: ansible_distribution == "Debian"
2023-11-16 16:40:45 +01:00
- name: "Update Docker Images"
include_role:
name: update-docker
when: docker_compose_directory_stat.stat.exists