2022-11-30 23:49:07 +01:00
|
|
|
---
|
|
|
|
- include_tasks: install.yml
|
2023-05-11 15:22:37 +02:00
|
|
|
|
2022-11-30 23:49:07 +01:00
|
|
|
- include_tasks: user_group_setup.yml
|
2023-04-27 10:52:49 +02:00
|
|
|
|
2023-05-08 09:40:58 +02:00
|
|
|
- name: Copy the compose file
|
|
|
|
template:
|
|
|
|
src: templates/{{ inventory_hostname }}/compose.yaml
|
|
|
|
dest: "{{ docker_compose_dir }}/compose.yaml"
|
|
|
|
register: compose
|
2023-04-27 10:52:49 +02:00
|
|
|
|
|
|
|
- include_tasks: "{{ inventory_hostname }}_compose.yml"
|
2023-04-13 18:43:32 +02:00
|
|
|
tags:
|
|
|
|
- reload_compose
|
2023-04-27 10:52:49 +02:00
|
|
|
|
2023-05-25 12:00:24 +02:00
|
|
|
- name: Update docker Images
|
2023-04-27 10:52:49 +02:00
|
|
|
shell:
|
|
|
|
cmd: "docker compose pull"
|
|
|
|
chdir: "{{ docker_compose_dir }}"
|
|
|
|
|
2023-05-25 12:00:24 +02:00
|
|
|
- name: Rebuilding docker images
|
2023-04-27 10:52:49 +02:00
|
|
|
shell:
|
2023-05-11 16:26:49 +02:00
|
|
|
cmd: "docker compose up -d --build"
|
2023-04-27 10:52:49 +02:00
|
|
|
chdir: "{{ docker_compose_dir }}"
|