Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
611 B

  1. ---
  2. - name: Fail if Synapse metrics or Prometheus Node Exporter not enabled
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to enable `matrix_prometheus_scraper_synapse_enabled` and/or `matrix_prometheus_scraper_node_enabled` for Prometheus grab metrics.
  6. when: "not matrix_prometheus_scraper_synapse_enabled and not matrix_prometheus_scraper_node_enabled"
  7. - name: Fail if required Prometheus settings not defined
  8. ansible.builtin.fail:
  9. msg: >
  10. You need to define a required configuration setting (`{{ item }}`).
  11. when: "vars[item] == ''"
  12. with_items:
  13. - matrix_prometheus_container_network