Add the db-related label conditionally
This commit is contained in:
parent
85496a65a5
commit
3ab00b9cf7
|
@ -28,6 +28,7 @@
|
||||||
labels:
|
labels:
|
||||||
epas_pg_data: 'epas_db'
|
epas_pg_data: 'epas_db'
|
||||||
labels_state: '{{ docker_label_state_mode }}'
|
labels_state: '{{ docker_label_state_mode }}'
|
||||||
|
when: epas_dockerized_db
|
||||||
|
|
||||||
- name: Install the docker compose file
|
- name: Install the docker compose file
|
||||||
template: src=epas-docker-compose.yml.j2 dest={{ epas_compose_dir }}/docker-epas-stack.yml owner=root group=root mode='0400'
|
template: src=epas-docker-compose.yml.j2 dest={{ epas_compose_dir }}/docker-epas-stack.yml owner=root group=root mode='0400'
|
||||||
|
@ -51,5 +52,5 @@
|
||||||
# when: epas_behind_haproxy
|
# when: epas_behind_haproxy
|
||||||
|
|
||||||
run_once: True
|
run_once: True
|
||||||
when: docker_swarm_manager_main_node is defined and docker_swarm_manager_main_node | bool
|
when: docker_swarm_manager_node is defined and docker_swarm_manager_node
|
||||||
tags: [ 'epas', 'epas_swarm', 'epas_server' ]
|
tags: [ 'epas', 'epas_swarm', 'epas_server' ]
|
||||||
|
|
Loading…
Reference in New Issue