Setup selinux context for git content.

This commit is contained in:
Kevin Fenzi
2015-10-13 18:45:57 +00:00
parent 44c63d2e53
commit bfb5cf4790

View File

@@ -38,6 +38,28 @@
- infinote
- config
- name: check the selinux context of /srv/web
command: matchpathcon /srv/web
register: webdir
always_run: yes
changed_when: "1 != 1"
tags:
- infinote
- config
- selinux
- httpd
- httpd/website
- name: /srv/web selinux context
command: semanage fcontext -a -t git_content_t "/srv/web(/.*)?"
when: webdir.stdout.find('git_content_t') == -1
tags:
- infinote
- config
- selinux
- httpd
- httpd/website
- name: create /srv/infinote for infinote content
file: dest=/srv/infinote state=directory mode=755 owner=infinote group=infinote
tags: