EL10 hosts matched neither the EL8 (== 8) nor EL9 (== 9) conditions,
so epel_rpms, container_service_name, and container_certs_path were
never set ('container_certs_path' is undefined at the Container Tasks
block) and the dnf upgrade task was skipped entirely.
Change both '== 9' conditions to '>= 9' so EL10 builders get package
upgrades and the EPEL/container vars.
Signed-off-by: David Galloway <david.galloway@ibm.com>
- ansible_distribution_major_version|int <= 8
tags: always
- - name: Update and upgrade all packages (RedHat EL9)
+ - name: Update and upgrade all packages (RedHat EL9+)
dnf:
name: '*'
state: latest
update_cache: yes
when:
- ansible_os_family == "RedHat"
- - ansible_distribution_major_version|int == 9
+ - ansible_distribution_major_version|int >= 9
tags: always
- name: Update and upgrade all packages (Suse)
- ansible_distribution_major_version|int == 8
tags: always
- # EL9 RPMs
+ # EL9+ RPMs
- set_fact:
epel_rpms:
- jq
container_certs_path: "/etc/containers/certs.d/{{ container_mirror }}"
when:
- ansible_os_family == "RedHat"
- - ansible_distribution_major_version|int == 9
+ - ansible_distribution_major_version|int >= 9
tags: always
# This package removed in EL9