Skip to content

Commit

Permalink
fix: use allow downgrade with yum
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Nov 26, 2024
1 parent e26403a commit e3cfd71
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ansible/roles/providers/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@
- ansible_distribution_version is version('8.10', '!=')

#this pins the version of cloud-init to avoid the issue here https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/4745
- name: Install cloud-init 23.1.1 for RHEL 8.10
shell: rpm -Uvh --oldpackage "{{ offline.os_packages_remote_filesystem_repo_path }}/cloud-init-23.1.1-10.el8.noarch.rpm"
- name: install cloud-init 23.1.1 for RHEL 8.10
yum:
name: cloud-init-23.1.1-10.el8
allow_downgrade: true
state: present
enablerepo: "{{ 'offline' if offline_mode_enabled else '' }}"
disablerepo: "{{ '*' if offline_mode_enabled else '' }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_version is version('8.10', '==')
Expand Down

0 comments on commit e3cfd71

Please sign in to comment.