Removed inj_enabled. logic

This commit is contained in:
2025-11-30 22:53:06 +01:00
parent 1e1f8e56e0
commit f57ccb2dd7

View File

@@ -1,3 +1,5 @@
# Keep in mind to don't use inj_enabled.
- name: "Check if Matomo endpoint is reachable" - name: "Check if Matomo endpoint is reachable"
uri: uri:
url: "{{ domains | get_url('web-app-matomo', WEB_PROTOCOL) }}" url: "{{ domains | get_url('web-app-matomo', WEB_PROTOCOL) }}"
@@ -11,11 +13,11 @@
when: when:
- application_id != 'web-app-matomo' - application_id != 'web-app-matomo'
- run_once_web_app_matomo is not defined - run_once_web_app_matomo is not defined
- inj_enabled.matomo
- name: "Setup web-app-matomo because endpoint was not reachable" - name: "Setup web-app-matomo because endpoint was not reachable"
include_role: include_role:
name: web-app-matomo name: web-app-matomo
public: false
when: when:
- matomo_reachability is defined - matomo_reachability is defined
- matomo_reachability.status | default(0) not in [200, 301, 302] - matomo_reachability.status | default(0) not in [200, 301, 302]
@@ -39,4 +41,3 @@
when: when:
- run_once_web_svc_logout is not defined - run_once_web_svc_logout is not defined
- application_id != 'web-svc-logout' - application_id != 'web-svc-logout'
- inj_enabled.logout