This website works better with JavaScript.
Home
Explore
Help
Sign In
overmind
/
matrix-docker-ansible-deploy
mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Do not fail on unrelated validation tasks when Prometheus not enabled
These validation tasks should only run when Prometheus is enabled.
pull/876/head
Slavi Pantaleev
5 years ago
parent
87ce12c3eb
commit
66d5b0e5b9
2 changed files
with
1 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-7
roles/matrix-prometheus-node-exporter/tasks/validate_config.yml
+1
-1
roles/matrix-prometheus/tasks/main.yml
+ 0
- 7
roles/matrix-prometheus-node-exporter/tasks/validate_config.yml
View File
@@ -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"
+ 1
- 1
roles/matrix-prometheus/tasks/main.yml
View File
@@ -3,7 +3,7 @@
- always
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
when: run_setup|bool
when:
"
run_setup|bool
and matrix_prometheus_enabled|bool"
tags:
- setup-all
- setup-prometheus
Write
Preview
Loading…
Cancel
Save