xoxys.prometheus/tasks/selinux.yml

14 lines
349 B
YAML
Raw Normal View History

2021-05-29 13:45:35 +02:00
---
- block:
- name: Allow prometheus to bind to port in SELinux
seport:
2021-05-29 15:02:57 +02:00
ports: "{{ prometheus_web_bind_port }}"
2021-05-29 13:45:35 +02:00
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