Skip to content

Commit b8f649d

Browse files
committed
change oci yum region condition check
1 parent 0e366ae commit b8f649d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocne2/create_instance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
dest: /etc/yum/vars/ociregion
302302
mode: '0644'
303303
become: true
304-
when: oci_yum_region | default(omit) | length > 0
304+
when: oci_yum_region is defined and oci_yum_region | length > 0
305305

306306
- name: Update all rpm packages
307307
ansible.builtin.import_playbook: update_all_rpms.yml

ol/create_instance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
dest: /etc/yum/vars/ociregion
302302
mode: '0644'
303303
become: true
304-
when: oci_yum_region | default(omit) | length > 0
304+
when: oci_yum_region is defined and oci_yum_region | length > 0
305305

306306
- name: Configure passwordless SSH
307307
ansible.builtin.include_tasks: "passwordless_setup.yml"

0 commit comments

Comments
 (0)