From 7f1dd8ad5105439635954dc421cc61e3b74e46c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien?= <5331611+sebbbastien@users.noreply.github.com> Date: Fri, 5 May 2023 18:06:34 +0200 Subject: [PATCH] Add "become: true" to snmp_exporter handlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien <5331611+sebbbastien@users.noreply.github.com> --- roles/snmp_exporter/handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/snmp_exporter/handlers/main.yml b/roles/snmp_exporter/handlers/main.yml index 3965c7efa..8207f612a 100644 --- a/roles/snmp_exporter/handlers/main.yml +++ b/roles/snmp_exporter/handlers/main.yml @@ -1,6 +1,7 @@ --- - name: Reload snmp exporter listen: "reload snmp exporter" + become: true ansible.builtin.systemd: daemon_reload: true name: snmp_exporter @@ -8,6 +9,7 @@ - name: Restart snmp exporter listen: "restart snmp exporter" + become: true ansible.builtin.systemd: daemon_reload: true name: snmp_exporter