Skip to content

Commit 664e7d2

Browse files
zjhuntinclaude
andcommitted
Use dnf module with allow_downgrade for openssl EL9 workaround
Swap the task order: downgrade first using ansible.builtin.dnf with allow_downgrade, then set excludepkgs to prevent update_os_packages from pulling 3.5.7-1 back in. The previous order failed because the excludes blocked depsolve during the downgrade. Tested on a CentOS 9 Stream box with openssl 3.5.7-1 installed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f9dcec8 commit 664e7d2

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

roles/vagrant_workarounds/tasks/main.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
- ansible_facts['os_family'] == 'Debian'
1616

1717
# workaround for https://issues.redhat.com/browse/RHEL-192424
18+
- name: force downgrade to openssl-3.5.5-3.el9
19+
ansible.builtin.dnf:
20+
name: openssl-3.5.5-3.el9
21+
state: present
22+
allow_downgrade: true
23+
when:
24+
- ansible_facts['os_family'] == 'RedHat'
25+
- ansible_facts['distribution_major_version'] == '9'
26+
1827
- name: don't install broken openssl on EL9
1928
community.general.ini_file:
2029
path: /etc/dnf/dnf.conf
@@ -24,14 +33,3 @@
2433
when:
2534
- ansible_facts['os_family'] == 'RedHat'
2635
- ansible_facts['distribution_major_version'] == '9'
27-
28-
- name: force downgrade to openssl-3.5.5-3.el9
29-
ansible.builtin.package:
30-
name:
31-
- openssl-3.5.5-3.el9
32-
- openssl-libs-3.5.5-3.el9
33-
- openssl-fips-provider-3.5.5-3.el9
34-
state: present
35-
when:
36-
- ansible_facts['os_family'] == 'RedHat'
37-
- ansible_facts['distribution_major_version'] == '9'

0 commit comments

Comments
 (0)