Move planet selinux task from people to planet role
This commit is contained in:
parent
f79164c72e
commit
6f12957c67
2 changed files with 18 additions and 15 deletions
|
@ -79,21 +79,6 @@
|
||||||
- config
|
- config
|
||||||
- selinux
|
- 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
|
- name: check the selinux context of the web dir
|
||||||
command: matchpathcon "/srv/web(/.*)?"
|
command: matchpathcon "/srv/web(/.*)?"
|
||||||
|
|
|
@ -51,6 +51,24 @@
|
||||||
- /srv/planet/site
|
- /srv/planet/site
|
||||||
- /srv/planet/config
|
- /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
|
- name: copy the run-planet script
|
||||||
copy: src=run-planet dest=/srv/planet/config/run-planet
|
copy: src=run-planet dest=/srv/planet/config/run-planet
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue