Skip to content

Commit

Permalink
Merge pull request #99 from sebbbastien/fix-handlers
Browse files Browse the repository at this point in the history
fix: add "become: true" to snmp_exporter handlers
  • Loading branch information
SuperQ authored May 6, 2023
2 parents 5a3968d + 7f1dd8a commit 06fa05c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/snmp_exporter/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
- name: Reload snmp exporter
listen: "reload snmp exporter"
become: true
ansible.builtin.systemd:
daemon_reload: true
name: snmp_exporter
state: reloaded

- name: Restart snmp exporter
listen: "restart snmp exporter"
become: true
ansible.builtin.systemd:
daemon_reload: true
name: snmp_exporter
Expand Down

0 comments on commit 06fa05c

Please sign in to comment.