Solved more matomo bugs

This commit is contained in:
2025-02-19 03:20:34 +01:00
parent bd1395926b
commit f84774a390
5 changed files with 44 additions and 27 deletions

View File

@@ -8,19 +8,34 @@
validate_certs: yes
register: site_check
ignore_errors: yes
when: run_once_docker_matomo is not defined
# @todo optimize this code. If global_matomo_tracking_enabled is active it doesn't have any impact.
- name: implement matomo tracking for matomo if matomo is up and tracking enabled
set_fact:
global_matomo_tracking_enabled: true
when: site_check is defined and site_check.status == 200 and global_matomo_tracking_enabled | bool
when:
- site_check is defined and site_check.status == 200
- global_matomo_tracking_enabled | bool
- run_once_docker_matomo is not defined
- name: "include docker-central-database"
include_role:
name: docker-central-database
when: run_once_docker_matomo is not defined
- name: "include role nginx-domain-setup for {{application_id}}"
include_role:
name: nginx-domain-setup
vars:
oauth2_proxy_active: false # Deactivate prox, in case it got activated by another app
when: run_once_docker_matomo is not defined
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml
include_tasks: copy-docker-compose-and-env.yml
when: run_once_docker_matomo is not defined
- name: run the docker matomo tasks once
set_fact:
run_once_docker_matomo: true
when: run_once_docker_matomo is not defined