tweaking semanage command to workaround error

This commit is contained in:
Tim Flink 2017-10-11 18:32:09 +00:00
parent 40561379f2
commit 11de748b25

View file

@ -58,7 +58,7 @@
when: slaves 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 }}(/.*)?"
command: semanage fcontext -a -t var_lib_t "{{ item.dir }}"
with_items: "{{ slaves }}"
when: slaves is defined and deployment_type in ['dev', 'stg', 'prod', 'qa-prod', 'qa-stg']