25 lines
557 B
YAML
25 lines
557 B
YAML
---
|
|
- include_tasks: install.yml
|
|
|
|
- include_tasks: user_group_setup.yml
|
|
|
|
- name: Copy the compose file
|
|
template:
|
|
src: templates/{{ inventory_hostname }}/compose.yaml
|
|
dest: "{{ docker_compose_dir }}/compose.yaml"
|
|
register: compose
|
|
|
|
- include_tasks: "{{ inventory_hostname }}_compose.yml"
|
|
tags:
|
|
- reload_compose
|
|
|
|
- name: Update docker Images
|
|
shell:
|
|
cmd: "docker compose pull"
|
|
chdir: "{{ docker_compose_dir }}"
|
|
|
|
- name: Rebuilding docker images
|
|
shell:
|
|
cmd: "docker compose up -d --build"
|
|
chdir: "{{ docker_compose_dir }}"
|