2022-11-30 23:49:07 +01:00
|
|
|
---
|
|
|
|
|
2022-12-29 22:45:17 +01:00
|
|
|
- include_tasks: traefik.yml
|
|
|
|
tags:
|
|
|
|
- traefik
|
|
|
|
|
|
|
|
- include_tasks: ddns.yml
|
|
|
|
tags:
|
|
|
|
- ddns
|
2022-11-30 23:49:07 +01:00
|
|
|
|
2022-12-29 22:45:17 +01:00
|
|
|
- include_tasks: homeassistant.yml
|
|
|
|
tags:
|
|
|
|
- homeassistant
|
2022-11-30 23:49:07 +01:00
|
|
|
|
2022-12-29 22:45:17 +01:00
|
|
|
- include_tasks: pihole.yml
|
|
|
|
tags:
|
|
|
|
- pihole
|
2022-11-30 23:49:07 +01:00
|
|
|
|
2022-12-05 18:25:36 +01:00
|
|
|
# Todo, check if docker compose is running
|
|
|
|
# - name: Shut down docker
|
|
|
|
# shell:
|
|
|
|
# cmd: "docker compose down --remove-orphans"
|
|
|
|
# chdir: "{{ docker_compose_dir }}"
|
2022-11-30 23:49:07 +01:00
|
|
|
|
|
|
|
- name: Copy the compose file
|
|
|
|
template:
|
2022-12-05 16:47:35 +01:00
|
|
|
src: templates/pi/compose.yaml
|
2022-11-30 23:49:07 +01:00
|
|
|
dest: "{{ docker_compose_dir }}/compose.yaml"
|
2022-12-10 03:21:11 +01:00
|
|
|
tags:
|
|
|
|
- reload_compose
|
2022-11-30 23:49:07 +01:00
|
|
|
|
|
|
|
- name: Run docker compose
|
|
|
|
shell:
|
|
|
|
cmd: "docker compose up -d"
|
|
|
|
chdir: "{{ docker_compose_dir }}"
|
2022-12-10 03:21:11 +01:00
|
|
|
tags:
|
|
|
|
- reload_compose
|