add required sefcontext for pid file
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a42c2808c5
commit
53032754fe
@ -90,6 +90,15 @@
|
|||||||
persistent: "{{ item.persistent }}"
|
persistent: "{{ item.persistent }}"
|
||||||
with_items: "{{ nginx_set_sebooleans }}"
|
with_items: "{{ nginx_set_sebooleans }}"
|
||||||
when: nginx_set_sebooleans is defined
|
when: nginx_set_sebooleans is defined
|
||||||
|
|
||||||
|
- name: Fix selinux file context mappaing for pid file
|
||||||
|
sefcontext:
|
||||||
|
target: '/var/run/nginx(/.*)?'
|
||||||
|
setype: httpd_var_run_t
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Apply new SELinux file context to filesystem
|
||||||
|
command: restorecon -irv /var/run
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user