Solved database feature naming bug

This commit is contained in:
2025-05-09 19:00:01 +02:00
parent e7c193f409
commit 27bfee2438
19 changed files with 26 additions and 24 deletions

View File

@@ -11,7 +11,7 @@
command:
cmd: "docker network connect {{applications.discourse.network}} central-{{ database_type }}"
ignore_errors: true
when: applications[application_id].features.database | bool
when: applications | is_feature_enabled('central_database',application_id)
listen: recreate discourse
- name: rebuild discourse

View File

@@ -83,7 +83,7 @@
cmd: "docker network connect central_postgres {{applications.discourse.container}}"
ignore_errors: true
when:
- applications[application_id].features.database | bool
- applications | is_feature_enabled('central_database',application_id)
- run_once_docker_discourse is not defined
- name: "remove central database from {{application_id}}_default"
@@ -91,7 +91,7 @@
cmd: "docker network disconnect {{applications.discourse.network}} central-{{ database_type }}"
ignore_errors: true
when:
- applications[application_id].features.database | bool
- applications | is_feature_enabled('central_database',application_id)
- run_once_docker_discourse is not defined
- name: run the docker_discourse tasks once

View File

@@ -1,5 +1,5 @@
templates:
{% if not applications[application_id].features.database | bool %}
{% if not applications | is_feature_enabled('central_database',application_id) %}
- "templates/postgres.template.yml"
{% endif %}
#- "templates/redis.template.yml"