xoxys.prometheus/tasks/selinux.yml

14 lines
368 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:
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