libravatar: ensure correct selinux context and perms after we haver run collectstatic

This commit is contained in:
clime 2018-11-18 11:42:52 +01:00
parent d364970549
commit 5e402fa1df

View file

@ -25,23 +25,6 @@
version: "{{ git_branch }}"
ignore_errors: yes
- name: set correct file attributes for /srv/libravatar
file:
path: /srv/libravatar
owner: apache
group: apache
state: directory
recurse: yes
- name: set fcontext for /srv/libravatar
sefcontext:
target: '/srv/libravatar(/.*)?'
setype: httpd_sys_content_t
state: present
- name: Apply new SELinux file context to filesystem
command: restorecon -ir /srv/libravatar
- pip:
requirements: requirements.txt
virtualenv: /mnt/data/.virtualenv
@ -81,6 +64,23 @@
args:
chdir: /srv/libravatar
- name: set correct file attributes for /srv/libravatar
file:
path: /srv/libravatar
owner: apache
group: apache
state: directory
recurse: yes
- name: set fcontext for /srv/libravatar
sefcontext:
target: '/srv/libravatar(/.*)?'
setype: httpd_sys_content_t
state: present
- name: Apply new SELinux file context to filesystem
command: restorecon -ir /srv/libravatar
- name: Allow libravatar connect to db remote services
seboolean:
name: "{{ item }}"