Removed proxy_extra_configuration fact

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-13 06:32:52 +02:00
parent 03290eafe1
commit 80dad1a5ed
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 5 additions and 7 deletions

View File

@ -19,7 +19,7 @@
- name: "Unset 'proxy_extra_configuration'" - name: "Unset 'proxy_extra_configuration'"
set_fact: set_fact:
proxy_extra_configuration: "{{ undef() }}" proxy_extra_configuration: null
- name: configure websocket_upgrade.conf - name: configure websocket_upgrade.conf
copy: copy:

View File

@ -1,6 +1,8 @@
--- ---
- name: Set proxy_extra_configuration based on applications | get_app_conf(application_id, 'public_api_activated', True) - name: "load docker, db and proxy for {{application_id}}"
set_fact: include_role:
name: cmp-db-docker-proxy
vars:
proxy_extra_configuration: >- proxy_extra_configuration: >-
{% if not applications | get_app_conf(application_id, 'public_api_activated', True) %} {% if not applications | get_app_conf(application_id, 'public_api_activated', True) %}
{{ lookup('file', '{{ role_path }}/files/deactivate-public-api.conf') }} {{ lookup('file', '{{ role_path }}/files/deactivate-public-api.conf') }}
@ -8,10 +10,6 @@
"" ""
{% endif %} {% endif %}
- name: "load docker, db and proxy for {{application_id}}"
include_role:
name: cmp-db-docker-proxy
- name: add config.toml - name: add config.toml
template: template:
src: "config.toml.j2" src: "config.toml.j2"