Move planet selinux task from people to planet role

This commit is contained in:
Till Maas 2015-07-31 20:18:50 +02:00
parent f79164c72e
commit 6f12957c67
2 changed files with 18 additions and 15 deletions

View file

@ -79,21 +79,6 @@
- config
- selinux
- name: check the selinux context of the planet dir
command: matchpathcon "/srv/planet(/.*)?"
register: gitcontext
always_run: yes
changed_when: false
tags:
- config
- selinux
- name: set the SELinux policy for the planet dir
command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?"
when: gitcontext.stdout.find('httpd_sys_content_t') == -1
tags:
- config
- selinux
- name: check the selinux context of the web dir
command: matchpathcon "/srv/web(/.*)?"

View file

@ -51,6 +51,24 @@
- /srv/planet/site
- /srv/planet/config
- name: check the selinux context of the planet dir
command: matchpathcon "/srv/planet(/.*)?"
register: gitcontext
always_run: yes
changed_when: false
tags:
- config
- selinux
- planet_server
- name: set the SELinux policy for the planet dir
command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?"
when: gitcontext.stdout.find('httpd_sys_content_t') == -1
tags:
- config
- selinux
- planet_server
- name: copy the run-planet script
copy: src=run-planet dest=/srv/planet/config/run-planet
tags: