mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
run selinux context changes on qa prod/stg as well
This commit is contained in:
@@ -60,10 +60,10 @@
|
||||
- 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 in ['dev', 'stg', 'prod']
|
||||
when: slaves is defined and deployment_type in ['dev', 'stg', 'prod', 'qa-prod', 'qa-stg']
|
||||
|
||||
- name: make sure the selinux fcontext is restored
|
||||
command: restorecon -R "{{ item.dir }}"
|
||||
with_items: "{{ slaves }}"
|
||||
when: slaves is defined and deployment_type in ['dev', 'stg', 'prod']
|
||||
when: slaves is defined and deployment_type in ['dev', 'stg', 'prod', 'qa-prod', 'qa-stg']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user