Skip to content

Commit 6033421

Browse files
committed
Check for ansible_local.bootc not just ansible_local
The actual fact ansible_local.bootc needs to be defined, not just ansible_local. Depends-On: openstack-k8s-operators/ci-framework#3362 Jira: OSPRH-20382 Signed-off-by: James Slagle <[email protected]>
1 parent a5cf980 commit 6033421

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

roles/edpm_update/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
ansible.builtin.import_role:
4343
name: osp.edpm.edpm_update_system
4444
tasks_from: bootc.yml
45-
when: ansible_local is defined and ansible_local.bootc
45+
when:
46+
- ansible_local.bootc is defined
47+
- ansible_local.bootc
4648

4749
- name: Update containers
4850
ansible.builtin.include_tasks: containers.yml

roles/edpm_update_system/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@
3737

3838
- name: Update OS (bootc)
3939
ansible.builtin.include_tasks: bootc.yml
40-
when: ansible_local is defined and ansible_local.bootc
40+
when:
41+
- ansible_local.bootc is defined
42+
- ansible_local.bootc

0 commit comments

Comments
 (0)