added cap net admin handling
This commit is contained in:
parent
eceb918fd1
commit
5b50d7e913
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,10 @@
|
|||
- name: install blackbox exporter
|
||||
apt:
|
||||
pkg: prometheus-blackbox-exporter
|
||||
- name: handle cap cap_net_raw, needed for icmp
|
||||
community.general.capabilities:
|
||||
path: /usr/bin/prometheus-blackbox-exporter
|
||||
capability: cap_net_raw+ep
|
||||
- name: wrtie blackbox exporter service config
|
||||
notify: restart blackbox exporter
|
||||
template:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue