xoxys.prometheus/tasks/selinux.yml

14 lines
349 B
YAML

---
- block:
- name: Allow prometheus to bind to port in SELinux
seport:
ports: "{{ prometheus_web_bind_port }}"
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