libravatar: ensure correct selinux type for /srv/libravatar

This commit is contained in:
clime 2018-10-11 12:49:24 +02:00
parent 352f17a767
commit bd7f9f8f0c

View file

@ -22,12 +22,18 @@
- group: name=www
- user: name=www group=www
- name: Allow apache to read files in /srv
- name: set fcontext for /srv/libravatar
sefcontext:
target: '/srv(/.*)?'
target: '/srv/libravatar(/.*)?'
setype: httpd_sys_content_t
state: present
- name: create /srv/libravatar
file:
path: /srv/libravatar
setype: httpd_sys_content_t
state: directory
- git:
repo: https://git.linux-kernel.at/oliver/ivatar.git
dest: /srv/libravatar