mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Replaced enable_central_database by configuration in application
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
command:
|
||||
cmd: "docker network connect {{applications.discourse.network}} central-{{ database_type }}"
|
||||
ignore_errors: true
|
||||
when: enable_central_database | bool
|
||||
when: applications[application_id].database.central_storage | bool
|
||||
listen: recreate discourse
|
||||
|
||||
- name: rebuild discourse
|
||||
|
@@ -65,10 +65,10 @@
|
||||
command:
|
||||
cmd: "docker network connect central_postgres {{applications.discourse.container}}"
|
||||
ignore_errors: true
|
||||
when: enable_central_database | bool
|
||||
when: applications[application_id].database.central_storage | bool
|
||||
|
||||
- name: "remove central database from {{application_id}}_default"
|
||||
command:
|
||||
cmd: "docker network disconnect {{applications.discourse.network}} central-{{ database_type }}"
|
||||
ignore_errors: true
|
||||
when: enable_central_database | bool
|
||||
when: applications[application_id].database.central_storage | bool
|
||||
|
@@ -1,5 +1,5 @@
|
||||
templates:
|
||||
{% if not enable_central_database | bool %}
|
||||
{% if not applications[application_id].database.central_storage | bool %}
|
||||
- "templates/postgres.template.yml"
|
||||
{% endif %}
|
||||
#- "templates/redis.template.yml"
|
||||
|
Reference in New Issue
Block a user