diff --git a/roles/taskotron/buildmaster/tasks/main.yml b/roles/taskotron/buildmaster/tasks/main.yml index f618114d2e..cb69abfbc9 100644 --- a/roles/taskotron/buildmaster/tasks/main.yml +++ b/roles/taskotron/buildmaster/tasks/main.yml @@ -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 }}