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
- selinux
- name: check the selinux context of bodhi's homedir
command: matchpathcon /usr/share/bodhi/.fedora
register: homedir
check_mode: no
changed_when: "1 != 1"
tags:
- config
- bodhi
- selinux
#- name: check the selinux context of bodhi's homedir
# command: matchpathcon /usr/share/bodhi/.fedora
# register: homedir
# check_mode: no
# changed_when: "1 != 1"
# tags:
# - config
# - bodhi
# - selinux
- name: /usr/share/bodhi/.fedora file contexts
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'
tags:
- config
- bodhi
- selinux
#- name: /usr/share/bodhi/.fedora file contexts
# 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'
# tags:
# - config
# - bodhi
# - selinux