mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized networking and matomo
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
---
|
||||
- name: check if matomo is up
|
||||
uri:
|
||||
url: "https://{{ domains.matomo }}/"
|
||||
method: GET
|
||||
return_content: yes
|
||||
status_code: 200
|
||||
validate_certs: yes
|
||||
register: site_check
|
||||
ignore_errors: yes
|
||||
|
||||
- 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
|
||||
|
||||
- name: "include docker-central-database"
|
||||
include_role:
|
||||
name: docker-central-database
|
||||
|
Reference in New Issue
Block a user