Add selinux context for web stuff on batcave

This commit is contained in:
Kevin Fenzi 2015-09-25 14:31:48 +00:00
parent 37c1303feb
commit 958f04b456

View file

@ -248,3 +248,29 @@
tags:
- batcave
- config
#
# set selinux context for /srv/web/infra
#
- name: check the selinux context of webdir
command: matchpathcon /srv/web
register: webdir
always_run: yes
changed_when: "1 != 1"
tags:
- config
- batcave
- selinux
- httpd
- httpd/website
- name: /srv/web file contexts
command: semanage fcontext -a -t httpd_sys_content_t "/srv/web(/.*)?"
when: webdir.stdout.find('httpd_sys_content_t') == -1
tags:
- config
- batcave
- selinux
- httpd
- httpd/website