Skip to content

Commit 446f052

Browse files
ciecierskisdatko
authored andcommitted
Add extra condition for starting update_containers role
Ensure update_containers role only runs for cifmw_update_containers_edpm_image_url varaible for osContainerImage when cifmw_update_containers_openstack is also true.
1 parent 722411e commit 446f052

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

roles/edpm_prepare/tasks/kustomize_and_deploy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@
3030

3131
- name: Prepare OpenStackVersion CR
3232
when: >-
33-
(cifmw_update_containers_edpm_image_url is defined) or
33+
(cifmw_update_containers_edpm_image_url is defined and
34+
cifmw_update_containers_openstack is defined and
35+
cifmw_update_containers_openstack | bool) or
3436
(cifmw_update_containers_ansibleee_image_url is defined) or
35-
((cifmw_update_containers_openstack is defined and
36-
cifmw_update_containers_openstack | bool)) or
37-
((cifmw_update_containers_watcher is defined and
38-
cifmw_update_containers_watcher | bool))
37+
(cifmw_update_containers_openstack is defined and
38+
cifmw_update_containers_openstack | bool) or
39+
(cifmw_update_containers_watcher is defined and
40+
cifmw_update_containers_watcher | bool)
3941
vars:
4042
cifmw_update_containers_metadata: "{{ _ctlplane_name }}"
4143
ansible.builtin.include_role:

0 commit comments

Comments
 (0)