Add selinux context for web stuff on batcave
This commit is contained in:
parent
37c1303feb
commit
958f04b456
1 changed files with 26 additions and 0 deletions
|
@ -248,3 +248,29 @@
|
||||||
tags:
|
tags:
|
||||||
- batcave
|
- batcave
|
||||||
- config
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue