update cloudflare notify and restart

This commit is contained in:
Ludovic Cartier 2023-02-07 10:48:43 +01:00
parent ac92dc9f6c
commit 53a1b96c15
2 changed files with 5 additions and 2 deletions

View File

@ -84,7 +84,7 @@
- name: 'prometheus | cloudflare exporter | restart service' - name: 'prometheus | cloudflare exporter | restart service'
systemd: systemd:
name: prometheus-cloudflare-exporter.service name: docker-compose@cloudflare.service
state: restarted state: restarted
enabled: yes enabled: yes
tags: ['prometheus'] tags: ['prometheus']

View File

@ -25,7 +25,8 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
notify: "{{ exporter }}-restart" notify:
- 'prometheus | {{ exporter }} exporter | restart service'
tags: [ 'prometheus_{{ exporter }}' ] tags: [ 'prometheus_{{ exporter }}' ]
- name: '{{ exporter }} exporter | systemd | install unit file' - name: '{{ exporter }} exporter | systemd | install unit file'
@ -35,6 +36,8 @@
owner: root owner: root
group: root group: root
mode: 0600 mode: 0600
notify:
- 'prometheus | {{ exporter }} exporter | restart service'
tags: [ 'prometheus_{{ exporter }}' ] tags: [ 'prometheus_{{ exporter }}' ]
- name: '{{ exporter }} exporter | systemd | enable service' - name: '{{ exporter }} exporter | systemd | enable service'