reorg tasks

This commit is contained in:
Ludovic Cartier committed 2022-11-11 19:04:14 +01:00
1 parent 5c37a866cc
commit 80e0fdcbe8
13 files changed
+23 -55

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+23 -55
View File
@@ -5,62 +5,30 @@
- name: 'prometheus | requirements' - name: 'prometheus | requirements'
include_tasks: 'requirements.yml' include_tasks: 'requirements.yml'
## prometheus server install
- name: 'prometheus | server install' - name: 'prometheus | server install'
include_tasks: 'prometheus.yml' include_tasks: 'server/prometheus.yml'
when: when:
- prometheus_server_enable == "true" - prometheus_server_enable == "true"
- name: 'prometheus | Node exporter' ## include exporter install
include_tasks: 'node_exporter.yml' - name: 'prometheus | exporter install'
when: vars:
- "'node' in prometheus_exporter_packages" service: "{{ item }}"
include_tasks: "exporter/{{ item }}.yml"
- name: 'prometheus | MongoDB exporter' tags:
include_tasks: 'mongodb_exporter.yml' - prometheus_node_exporter
when: - prometheus_mysqld_exporter
- "'mongodb' in prometheus_exporter_packages" - prometheus_postgresql_exporter
- prometheus_mongodb_exporter
- name: 'prometheus | MySQL exporter' - prometheus_apache_exporter
include_tasks: 'mysqld_exporter.yml' - prometheus_haproxy_exporter
when: - prometheus_varnish_exporter
- "'mysqld' in prometheus_exporter_packages" - prometheus_redis_exporter
- prometheus_memcached_exporter
- name: 'prometheus | PostgreSQL exporter' - prometheus_phpfpm_exporter
include_tasks: 'postgresql_exporter.yml' - prometheus_opcache_exporter
when: - prometheus_blackbox_exporter
- "'postgresql' in prometheus_exporter_packages" - prometheus_kong_exporter
with_items:
- name: 'prometheus | PHP Fpm exporter' - "{{ prometheus_exporter_packages }}"
include_tasks: 'phpfpm_exporter.yml'
when:
- "'phpfpm' in prometheus_exporter_packages"
- name: 'prometheus | PHP opcache exporter'
include_tasks: 'opcache_exporter.yml'
when:
- "'opcache' in prometheus_exporter_packages"
- name: 'prometheus | Apache exporter'
include_tasks: 'apache_exporter.yml'
when:
- "'apache' in prometheus_exporter_packages"
- name: 'prometheus | Varnish exporter'
include_tasks: 'varnish_exporter.yml'
when:
- "'varnish' in prometheus_exporter_packages"
- name: 'prometheus | Blackbox exporter'
include_tasks: 'blackbox_exporter.yml'
when:
- "'blackbox' in prometheus_exporter_packages"
- name: 'prometheus | Redis exporter'
include_tasks: 'redis_exporter.yml'
when:
- "'redis' in prometheus_exporter_packages"
- name: 'prometheus | Memcached exporter'
include_tasks: 'memcached_exporter.yml'
when:
- "'memcached' in prometheus_exporter_packages"
File renamed without changes.