taskotron - selinux context workaround

This commit is contained in:
Josef Skladanka 2017-11-21 22:46:15 +01:00
parent 0633c0b63b
commit c76842617c

View file

@ -45,9 +45,9 @@
file: path="{{ buildmaster_home }}" state=directory owner=buildmaster group=buildmaster mode=0775
when: deployment_type in ['dev', 'stg', 'prod']
- name: set the selinux fcontext type for the buildmaster_home to var_lib_t
command: semanage fcontext -a -t var_lib_t "{{ buildmaster_home }}(/.*)?"
when: deployment_type in ['dev', 'stg', 'prod', 'qa-stg']
#- name: set the selinux fcontext type for the buildmaster_home to var_lib_t
# command: semanage fcontext -a -t var_lib_t "{{ buildmaster_home }}(/.*)?"
# when: deployment_type in ['dev', 'stg', 'prod', 'qa-stg']
#- name: make sure the selinux fcontext is restored
# command: restorecon -R "{{ buildmaster_home }}"