mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 12:35:51 +00:00
Do not fail on unrelated validation tasks when Prometheus not enabled
These validation tasks should only run when Prometheus is enabled.
This commit is contained in:
parent
87ce12c3eb
commit
66d5b0e5b9
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Fail if Synapse metrics or Prometheus Node Exporter not enabled
|
|
||||||
fail:
|
|
||||||
msg: >
|
|
||||||
You need to enable `matrix_synapse_metrics_enabled` and/or `matrix_prometheus_node_exporter_enabled` for Prometheus grab metrics.
|
|
||||||
when: "not matrix_synapse_metrics_enabled and not matrix_prometheus_node_exporter_enabled"
|
|
@ -3,7 +3,7 @@
|
|||||||
- always
|
- always
|
||||||
|
|
||||||
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
when: run_setup|bool
|
when: "run_setup|bool and matrix_prometheus_enabled|bool"
|
||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- setup-prometheus
|
- setup-prometheus
|
||||||
|
Loading…
Reference in New Issue
Block a user