Ansible-core upgrade?

Problem:
Ansible has a bug (get_url doesn’t work on hosts with Python 3.12 or newer) that is supposed to be fixed in Ansible-core 2.16. Current Ansible-core on my system, as far as I can tell, is 2.14.14.

Expected outcome:
Ansible-core is updated to latest release.

Foreman and Proxy versions:
3.12.0

Foreman and Proxy plugin versions:

  • foreman-tasks 9.2.3
  • foreman_ansible 14.2.1
  • foreman_bootdisk 21.2.3
  • foreman_remote_execution 13.2.5
  • katello 4.14.0

Distribution and version:
AlamaLinux 9.4

Other relevant data:
I never installed Ansible manually, presumably it came with the foreman_ansible plugin. Is it safe to upgrade Ansible manually, or will that potentially break things? Do I need to wait for foreman_ansible to be updated?

Hi there!

It was decided that Ansible will stay on 2.14 for the whole lifetime of RHEL 9 (and due to that also it’s derivatives)
I think the best case would be to check if the issue is also happening for CentOS Stream 9, which should already have the content for the 9.5 release, and if it’s also happening there (and also RHEL 9), might be time to open an issue for either or (or both) RHEL / Alma.
Maybe a fix for 2.14 is possible :+1:

Which bug? Do you have a link to a bug report?

Generally, version numbers on RHEL derivates don’t say much about which bugs have been fixed and which not.

Ansible bug: Fix use of deprecated parameters in `module_utils/urls.py` · Issue #80490 · ansible/ansible · GitHub

If you have access, there is a redhat bug: https://issues.redhat.com/browse/RHEL-54538

However, it won’t be fixed:

ansible-core 2.14 used in C9S doesn’t support remote target using python 3.12 [1]

[1] https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix

Fun times, especially for the note about RHEL 10.

For some reason, ansible-core didn’t show up as an installed package when I looked yesterday, so I assumed it was installed via the python pip method. Looking now, I see ansible-core 2.14.14-1.el9 is installed from @appstream.

It looks like ansible-core 2.16 is available in @appstream for AlmaLinux 8, so I guess I just need to wait for the newer version to show up in the AlmaLinux 9 AppStream repo.

Nope, everything correct there, EL 8 stuck to 2.16 as stable version, EL 9 to 2.14 as stable version.
At least that’s what the blog post says.
(Alma will very most likely stick to what RHEL has so this article also applies there)

Yeah, I figured that out after posting my last reply. I hadn’t properly looked at your original reply.

I just updated my ansible playbook to use wget via ‘shell’ instead of using ‘get_url’. Oh well.

1 Like