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