34 lines
1.3 KiB
YAML

# run_once_docker_compose: deactivate
- name: "Load variables from {{ docker_compose_variable_file }} for whole play"
include_vars: "{{ docker_compose_variable_file }}"
- name: "reset (if enabled)"
include_tasks: 01_reset.yml
when: mode_reset | bool
# This could lead to problems in docker-compose directories which are based on a git repository
# @todo Verify that this isn't the case. E.g. in accounting
- name: "Create all docker-compose directories (including parent directories) for '{{ application_id }}'"
file:
path: "{{ item.value }}"
state: directory
mode: '0755'
with_dict: "{{ docker_compose.directories }}"
- name: "Include routines to set up a git repository based installaion for '{{application_id}}'."
include_tasks: "02_repository.yml"
when: docker_pull_git_repository | bool
- name: "Include routines file management routines for '{{application_id}}'."
include_tasks: "03_files.yml"
when: not docker_compose_skipp_file_creation | bool
- name: "Ensure that {{ docker_compose.directories.instance }} is up"
include_tasks: "04_ensure_up.yml"
when: not docker_compose_skipp_file_creation | bool
- name: "flush database, docker and proxy for '{{ application_id }}'"
meta: flush_handlers
when: docker_compose_flush_handlers | bool