Update trusted domains for matomo

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-20 15:35:08 +02:00
parent f4a380d802
commit fa46523433
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 8 additions and 3 deletions

View File

@ -2,8 +2,8 @@
include_role:
name: cmp-db-docker-proxy
- name: "Patch Matomo config.ini.php with updated DB credentials"
include_tasks: database.yml
- name: "Patch Matomo config.ini.php"
include_tasks: 02_configuration.yml
- name: flush docker service
meta: flush_handlers

View File

@ -18,3 +18,8 @@
docker exec --user root {{ matomo_name }}
sed -i "s/^password *=.*/password = {{ database_password }}/" {{ matomo_config }}
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
- name: Update trusted host
command: >
docker exec --user root {{ matomo_name }}
sed -i "s|^trusted_hosts\[\].*|trusted_hosts[] = \"{{ domain }}\"|" {{ matomo_config }}

View File

@ -1,6 +1,6 @@
---
- name: "construct {{ role_name }}"
include_tasks: constructor.yml
include_tasks: 01_core.yml
when: run_once_web_app_matomo is not defined
- name: run the docker matomo tasks once