From 53a1b96c15c845a7609e2ecfd7da18a7cee86d75 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 7 Feb 2023 10:48:43 +0100 Subject: [PATCH] update cloudflare notify and restart --- handlers/main.yml | 2 +- tasks/exporter/_docker.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 942e4e9..9ad332f 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -84,7 +84,7 @@ - name: 'prometheus | cloudflare exporter | restart service' systemd: - name: prometheus-cloudflare-exporter.service + name: docker-compose@cloudflare.service state: restarted enabled: yes tags: ['prometheus'] diff --git a/tasks/exporter/_docker.yml b/tasks/exporter/_docker.yml index 3693ed7..3d73054 100644 --- a/tasks/exporter/_docker.yml +++ b/tasks/exporter/_docker.yml @@ -25,7 +25,8 @@ owner: root group: root mode: 0644 - notify: "{{ exporter }}-restart" + notify: + - 'prometheus | {{ exporter }} exporter | restart service' tags: [ 'prometheus_{{ exporter }}' ] - name: '{{ exporter }} exporter | systemd | install unit file' @@ -35,6 +36,8 @@ owner: root group: root mode: 0600 + notify: + - 'prometheus | {{ exporter }} exporter | restart service' tags: [ 'prometheus_{{ exporter }}' ] - name: '{{ exporter }} exporter | systemd | enable service'