add required sefcontext for pid file
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-02-20 22:54:30 +01:00
parent a42c2808c5
commit 53032754fe

View File

@ -90,6 +90,15 @@
persistent: "{{ item.persistent }}"
with_items: "{{ nginx_set_sebooleans }}"
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_user: root