Skip to content

Install ansible-core instead of ansible on EL10 - #235

Merged
anfimovdm merged 1 commit into
masterfrom
al-el10-ansible-core
Oct 27, 2026
Merged

anfimovdm merged 1 commit into
masterfrom
al-el10-ansible-core

Conversation

@anfimovdm

Copy link
Copy Markdown
Contributor

Resolves AlmaLinux/build-system#562

Summary

EPEL 10 doesn't have the ansible bundle package, so the initial provision of every EL10 Docker test environment fails at preparation : Install ansible with No package ansible available.

Changes

  • resources/roles/preparation/tasks/rhel.yml:
    • Install ansible now runs only on releases below 10 and on Fedora.
    • New task Install ansible-core and collections (10 and higher) installs ansible-core (AppStream), ansible-collection-ansible-posix and ansible-collection-community-general (EPEL). It uses the same retry logic and ignore_ansible_install_errors handling as the existing task.

Testing

  • Reproduced the failure in almalinux:10 (10.2, epel-release-10-6): dnf --enablerepo=epel install ansible gives Unable to find a match: ansible. Repo metadata queried with --forcearch=aarch64 shows the same.
  • In a clean almalinux:10 container, the new package set installs successfully: ansible [core 2.16.16], ansible.posix 2.2.1, community.general 10.7.3. A community.general.ini_file ad-hoc call works.
  • The updated task file parses as valid YAML. The full playbook has not been run against an EL10 environment yet.

Note: the old bundle shipped many more collections. Tests that rely on other collections inside the container would still need them added.

🤖 Generated with Claude Code

EPEL 10 doesn't ship the ansible bundle package, so the initial provision of EL10 Docker test environments fails with "No package ansible available". Install ansible-core from AppStream together with ansible.posix and community.general collections from EPEL on EL10+ (excluding Fedora).

Resolves: AlmaLinux/build-system#562
@anfimovdm
anfimovdm merged commit f3efd63 into master Oct 27, 2026
2 of 3 checks passed
@anfimovdm
anfimovdm deleted the al-el10-ansible-core branch October 27, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ALTS: AlmaLinux 10 test environments fail to install ansible (not in EPEL 10)

1 participant