buildmaster: make sure the selinux fcontext is restored

This commit is contained in:
Martin Krizek 2017-01-05 09:48:28 +00:00
parent 70b8400720
commit d5121df4d3

View file

@ -38,6 +38,10 @@
command: semanage fcontext -a -t var_lib_t "{{ buildmaster_home }}(/.*)?"
when: deployment_type in ['dev', 'stg', 'qa-stg']
- name: make sure the selinux fcontext is restored
command: restorecon -R "{{ buildmaster_home }}"
when: slaves is defined and deployment_type in ['dev', 'stg', 'qa-stg']
- name: add the buildmaster user
user: name={{ buildmaster_user }} home={{ buildmaster_home }}