add task to set seports
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-02-23 17:10:49 +01:00
parent 6516293b2b
commit 8f177e445a

View File

@ -84,6 +84,17 @@
loop: "{{ nginx_set_sebooleans }}"
when: nginx_set_sebooleans is defined
- name: Allow to bind to custom ports
seport:
ports: "{{ item.port }}"
proto: "{{ item.proto | defaul('tcp') }}"
setype: http_port_t
state: "{{ item.state | default('present') }}"
loop: "{{ nginx_set_seports }}"
loop_control:
label: "{{ item.port }}"
when: nginx_set_seports is defined
- name: Fix selinux file context mappaing for pid file
sefcontext:
target: '/var/run/nginx(/.*)?'