Remove bodhi2/base file context setting

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-12-12 20:42:53 +00:00
parent 8a0a0d30dc
commit c9f5123223

View file

@ -163,20 +163,20 @@
- bodhi - bodhi
- selinux - selinux
- name: check the selinux context of bodhi's homedir #- name: check the selinux context of bodhi's homedir
command: matchpathcon /usr/share/bodhi/.fedora # command: matchpathcon /usr/share/bodhi/.fedora
register: homedir # register: homedir
check_mode: no # check_mode: no
changed_when: "1 != 1" # changed_when: "1 != 1"
tags: # tags:
- config # - config
- bodhi # - bodhi
- selinux # - selinux
- name: /usr/share/bodhi/.fedora file contexts #- name: /usr/share/bodhi/.fedora file contexts
command: semanage fcontext -a -t httpd_sys_rw_content_t "/usr/share/bodhi/.fedora" # command: semanage fcontext -a -t httpd_sys_rw_content_t "/usr/share/bodhi/.fedora"
when: homedir.stdout.find('httpd_sys_content_t') == -1 and env == 'production' # when: homedir.stdout.find('httpd_sys_content_t') == -1 and env == 'production'
tags: # tags:
- config # - config
- bodhi # - bodhi
- selinux # - selinux