exporter - review handlers

This commit is contained in:
Ludovic Cartier 2022-11-11 19:10:30 +01:00
parent 0367e35f55
commit 6c4ff6d9b8
5 changed files with 18 additions and 9 deletions

View File

@ -46,10 +46,11 @@
owner: root
group: root
mode: 0600
notify:
- 'prometheus | blackbox exporter | restart service'
- name: 'prometheus | blackbox exporter | configure systemd to use service'
systemd:
daemon_reload: yes
enabled: yes
name: prometheus-blackbox-exporter.service

View File

@ -25,6 +25,8 @@
owner: root
group: root
mode: 0755
notify:
- 'prometheus | memcached exporter | restart service'
- name: 'prometheus | memcached exporter | install unit file to systemd'
template:

View File

@ -19,6 +19,8 @@
owner: root
group: root
mode: 0755
notify:
- 'prometheus | opcache exporter | restart service'
- name: 'prometheus | opcache exporter | configuration'
template:
@ -28,6 +30,8 @@
group: root
mode: 0600
register: prometheus_opcache_exporter_configuration
notify:
- 'prometheus | opcache exporter | restart service'
- name: 'prometheus | opcache exporter | install unit file to systemd'
template:

View File

@ -35,6 +35,8 @@
owner: root
group: root
mode: 0600
notify:
- 'prometheus | phpfpm exporter | restart service'
- name: 'prometheus | phpfpm exporter | install unit file to systemd'
template:

View File

@ -26,14 +26,6 @@
group: root
mode: 0755
- name: 'prometheus | redis exporter | install unit file to systemd'
template:
src: systemd/prometheus-redis-exporter.service.j2
dest: /etc/systemd/system/prometheus-redis-exporter.service
owner: root
group: root
mode: 0600
- name: 'prometheus | redis exporter | configuration'
template:
src: conf/prometheus-redis-exporter.j2
@ -45,6 +37,14 @@
notify:
- 'prometheus | redis exporter | restart service'
- name: 'prometheus | redis exporter | install unit file to systemd'
template:
src: systemd/prometheus-redis-exporter.service.j2
dest: /etc/systemd/system/prometheus-redis-exporter.service
owner: root
group: root
mode: 0600
- name: 'prometheus | redis exporter | configure systemd to use service'
systemd:
daemon_reload: yes