add task to set seports
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6516293b2b
commit
8f177e445a
@ -84,6 +84,17 @@
|
|||||||
loop: "{{ nginx_set_sebooleans }}"
|
loop: "{{ nginx_set_sebooleans }}"
|
||||||
when: nginx_set_sebooleans is defined
|
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
|
- name: Fix selinux file context mappaing for pid file
|
||||||
sefcontext:
|
sefcontext:
|
||||||
target: '/var/run/nginx(/.*)?'
|
target: '/var/run/nginx(/.*)?'
|
||||||
|
Loading…
Reference in New Issue
Block a user