mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 20:03:04 +00:00
Merge pull request #99 from sebbbastien/fix-handlers
fix: add "become: true" to snmp_exporter handlers
This commit is contained in:
commit
06fa05cae6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue