14 lines
368 B
YAML
14 lines
368 B
YAML
---
|
|
- block:
|
|
- name: Allow prometheus to bind to port in SELinux
|
|
seport:
|
|
ports: "{{ prometheus_web_listen_address.split(':')[1] }}"
|
|
proto: tcp
|
|
setype: http_port_t
|
|
state: present
|
|
when:
|
|
- ansible_version.full is version('2.4', '>=')
|
|
- ansible_selinux.status == "enabled"
|
|
become: True
|
|
become_user: root
|