From 5c37a866cc8154fc4f24b39a06afbe14c27d5782 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Fri, 11 Nov 2022 18:52:42 +0100 Subject: [PATCH] memcache - add not restart handler --- handlers/main.yml | 7 +++++++ tasks/memcached_exporter.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index a632f6c..6d738eb 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -74,3 +74,10 @@ state: restarted enabled: yes tags: ['prometheus'] + +- name: 'prometheus | memcached exporter | restart service' + systemd: + name: prometheus-memcached-exporter.service + state: restarted + enabled: yes + tags: ['prometheus'] diff --git a/tasks/memcached_exporter.yml b/tasks/memcached_exporter.yml index 795e9b0..f6041eb 100644 --- a/tasks/memcached_exporter.yml +++ b/tasks/memcached_exporter.yml @@ -33,6 +33,8 @@ owner: root group: root mode: 0600 + notify: + - 'prometheus | memcached exporter | restart service' # - name: 'prometheus | memcached exporter | configuration' # template: