libravatar: ensure correct selinux context and perms after we haver run collectstatic
This commit is contained in:
parent
d364970549
commit
5e402fa1df
1 changed files with 17 additions and 17 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue