2024-01-03 20:17:55 +01:00
|
|
|
- name: include docker vars
|
2024-01-08 15:14:55 +01:00
|
|
|
include_vars: vars/docker-common.yml.j2
|
2024-01-03 20:17:55 +01:00
|
|
|
|
|
|
|
- name: load docker compose dependencies
|
|
|
|
include_role:
|
|
|
|
name: docker-compose
|
|
|
|
|
2024-01-08 15:14:55 +01:00
|
|
|
- name: "remove {{ docker_compose_instance_directory }} and all its contents"
|
|
|
|
file:
|
|
|
|
path: "{{ docker_compose_instance_directory }}"
|
|
|
|
state: absent
|
2024-01-08 19:38:36 +01:00
|
|
|
when: mode_reset | bool
|
2024-01-08 15:14:55 +01:00
|
|
|
|
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
|
|
|
file:
|
|
|
|
path: "{{docker_compose_instance_directory}}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|