update selinux context for buildslaves files on dev-clients-host

This commit is contained in:
Martin Krizek 2016-11-09 20:27:29 +00:00
parent 62585a5da2
commit 80b3a395f9

View file

@ -47,6 +47,11 @@
group: name={{ slaves_group }}
when: slaves_group is defined and (deployment_type == 'stg' or deployment_type in ['dev', 'prod'])
- name: set the selinux fcontext type for the buildslave dir to var_lib_t
command: semanage fcontext -a -t var_lib_t "{{ item.dir }}(/.*)?"
with_items: "{{ slaves }}"
when: slaves is defined and deployment_type == 'dev'
- name: add buildslave users
user: name={{ item.user }} group={{ slaves_group }} groups=testcloud,taskotron home={{ item.home }}
with_items: "{{ slaves }}"