Update to 2020-12-02 12:00

master
Daniel Berteaud 4 years ago
parent 3f8f9bffe6
commit d00a98c39f
  1. 11
      roles/nginx/tasks/selinux.yml

@ -11,3 +11,14 @@
when: ansible_selinux.status == 'enabled' when: ansible_selinux.status == 'enabled'
tags: web tags: web
- name: Ensure correct context on cache
sefcontext:
target: '/var/cache/nginx(/.*)?'
setype: httpd_cache_t
register: nginx_cache_context
tags: web
- name: Restore context of cache files
command: restorecon -R /var/cache/nginx
changed_when: nginx_cache_context.changed
tags: web

Loading…
Cancel
Save