someone must have put this context in by hand last time.. bad someone bad.. no cookie
This commit is contained in:
parent
e8ec9c5193
commit
9b52b0e1b0
1 changed files with 17 additions and 0 deletions
|
@ -96,6 +96,23 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- selinux
|
- selinux
|
||||||
|
|
||||||
|
- name: check the selinux context of the people dir
|
||||||
|
command: matchpathcon "/srv/people(/.*)?"
|
||||||
|
register: gitcontext
|
||||||
|
always_run: yes
|
||||||
|
changed_when: false
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
|
- name: set the SELinux policy for the web dir
|
||||||
|
command: semanage fcontext -a -t httpd_sys_content_t "/srv/people(/.*)?"
|
||||||
|
when: gitcontext.stdout.find('httpd_sys_content_t') == -1
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
#
|
#
|
||||||
# This sets the default, it's safe to always run.
|
# This sets the default, it's safe to always run.
|
||||||
# Default quota for users is 2gb
|
# Default quota for users is 2gb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue