Refactored for simplified use of cleanup parameter

This commit is contained in:
2024-01-08 15:14:55 +01:00
parent 21b5b4a299
commit 01d806fae9
26 changed files with 68 additions and 143 deletions

View File

@@ -1,11 +1,18 @@
- name: include docker vars
include_vars: vars/docker-database-service.yml.j2
include_vars: vars/docker-common.yml.j2
- name: load docker compose dependencies
include_role:
name: docker-compose
- name: create central database
include_role:
name: docker-{{database_type}}
when: enable_central_database | bool
- name: "remove {{ docker_compose_instance_directory }} and all its contents"
file:
path: "{{ docker_compose_instance_directory }}"
state: absent
when: reset_files | bool
- name: "create {{docker_compose_instance_directory}}"
file:
path: "{{docker_compose_instance_directory}}"
state: directory
mode: 0755

View File

@@ -0,0 +1,10 @@
- name: include docker vars/docker-database.yml.j2
include_vars: vars/docker-database.yml.j2
- name: "include docker-compose-common.yml"
include_tasks: docker-compose-common.yml
- name: create central database
include_role:
name: docker-{{database_type}}
when: enable_central_database | bool