mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-29 23:30:18 +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
|
- name: Reload snmp exporter
|
||||||
listen: "reload snmp exporter"
|
listen: "reload snmp exporter"
|
||||||
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
name: snmp_exporter
|
name: snmp_exporter
|
||||||
|
@ -8,6 +9,7 @@
|
||||||
|
|
||||||
- name: Restart snmp exporter
|
- name: Restart snmp exporter
|
||||||
listen: "restart snmp exporter"
|
listen: "restart snmp exporter"
|
||||||
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
name: snmp_exporter
|
name: snmp_exporter
|
||||||
|
|
Loading…
Reference in a new issue