update selinux context for buildslaves files on dev-clients-host
This commit is contained in:
parent
62585a5da2
commit
80b3a395f9
1 changed files with 5 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue