prometheus/tasks/main.yml
Ludovic Cartier 80e0fdcbe8 reorg tasks
2022-11-11 19:04:14 +01:00

35 lines
953 B
YAML

---
- name: 'prometheus | include asserts'
include_tasks: 'asserts.yml'
- name: 'prometheus | requirements'
include_tasks: 'requirements.yml'
## prometheus server install
- name: 'prometheus | server install'
include_tasks: 'server/prometheus.yml'
when:
- prometheus_server_enable == "true"
## include exporter install
- name: 'prometheus | exporter install'
vars:
service: "{{ item }}"
include_tasks: "exporter/{{ item }}.yml"
tags:
- prometheus_node_exporter
- prometheus_mysqld_exporter
- prometheus_postgresql_exporter
- prometheus_mongodb_exporter
- prometheus_apache_exporter
- prometheus_haproxy_exporter
- prometheus_varnish_exporter
- prometheus_redis_exporter
- prometheus_memcached_exporter
- prometheus_phpfpm_exporter
- prometheus_opcache_exporter
- prometheus_blackbox_exporter
- prometheus_kong_exporter
with_items:
- "{{ prometheus_exporter_packages }}"