mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
Update trusted domains for matomo
This commit is contained in:
parent
f4a380d802
commit
fa46523433
@ -2,8 +2,8 @@
|
|||||||
include_role:
|
include_role:
|
||||||
name: cmp-db-docker-proxy
|
name: cmp-db-docker-proxy
|
||||||
|
|
||||||
- name: "Patch Matomo config.ini.php with updated DB credentials"
|
- name: "Patch Matomo config.ini.php"
|
||||||
include_tasks: database.yml
|
include_tasks: 02_configuration.yml
|
||||||
|
|
||||||
- name: flush docker service
|
- name: flush docker service
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
@ -18,3 +18,8 @@
|
|||||||
docker exec --user root {{ matomo_name }}
|
docker exec --user root {{ matomo_name }}
|
||||||
sed -i "s/^password *=.*/password = {{ database_password }}/" {{ matomo_config }}
|
sed -i "s/^password *=.*/password = {{ database_password }}/" {{ matomo_config }}
|
||||||
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
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 }}
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "construct {{ role_name }}"
|
- name: "construct {{ role_name }}"
|
||||||
include_tasks: constructor.yml
|
include_tasks: 01_core.yml
|
||||||
when: run_once_web_app_matomo is not defined
|
when: run_once_web_app_matomo is not defined
|
||||||
|
|
||||||
- name: run the docker matomo tasks once
|
- name: run the docker matomo tasks once
|
||||||
|
Loading…
x
Reference in New Issue
Block a user