mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized Matomo
This commit is contained in:
@@ -10,14 +10,10 @@
|
||||
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
|
||||
- name: "Determine global_matomo_tracking_enabled based on current value and site reachability"
|
||||
set_fact:
|
||||
global_matomo_tracking_enabled: true
|
||||
when:
|
||||
- site_check is defined and site_check.status == 200
|
||||
- global_matomo_tracking_enabled | bool
|
||||
- run_once_docker_matomo is not defined
|
||||
global_matomo_tracking_enabled: "{{ (global_matomo_tracking_enabled | bool) and (site_check is defined and site_check.status == 200) }}"
|
||||
when: run_once_docker_matomo is not defined
|
||||
|
||||
- name: "include docker-central-database"
|
||||
include_role:
|
||||
|
Reference in New Issue
Block a user