Skip to content

Fix Fedora support in setup playbook - #433

Open
ogajduse wants to merge 3 commits into
theforeman:masterfrom
ogajduse:fix-fedora-setup-condition
Open

Fix Fedora support in setup playbook#433
ogajduse wants to merge 3 commits into
theforeman:masterfrom
ogajduse:fix-fedora-setup-condition

Conversation

@ogajduse

@ogajduse ogajduse commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix Fedora package detection using ansible_distribution instead of ansible_os_family (which returns RedHat on Fedora, not Fedora)
  • Install git-annex instead of git-annex-standalone on Fedora, since git-annex-standalone is not available in Fedora repos
  • Remove retired quvi package and the entire Fedora-specific task block (quvi was the only package there and has been retired from Fedora)

Test plan

  • Run obal setup on Fedora — verify no errors about missing packages
  • Run obal setup on Fedora — verify git-annex is installed (not git-annex-standalone)
  • Run obal setup on EL8 — verify git-annex-standalone is installed
  • Run obal setup on EL9 — verify git-annex-standalone is installed
  • Run obal setup on EL10 — verify git-annex-standalone is installed

Fixes #431, Fixes #432, Fixes #434

ogajduse added 2 commits June 12, 2026 18:30
ansible_os_family returns 'RedHat' on Fedora, not 'Fedora'.
Use ansible_distribution instead, which correctly returns 'Fedora'.

This caused Fedora-specific packages (e.g. quvi) to never be
installed when running `obal setup` on Fedora.

Fixes theforeman#431
git-annex-standalone is not available in Fedora repos. The existing
condition only distinguished between EL7 and EL8+, but Fedora also
needs plain git-annex like EL7.

Add ansible_distribution == 'Fedora' check so Fedora systems get
git-annex instead of the non-existent git-annex-standalone.

Fixes theforeman#432
@ogajduse

Copy link
Copy Markdown
Member Author

Test results

Tested obal setup across distros using containers (AlmaLinux images + git-annex 3rd party repo from downloads.kitenet.net):

Distro git-annex package installed Fedora packages task Result
Fedora 43 git-annex (native) runs pass
EL9 (AlmaLinux 9) git-annex-standalone-10.20260601 skipped pass
EL10 (AlmaLinux 10) git-annex-standalone (OK) skipped pass*

* EL10 fails on tito (not yet in EPEL 10) — unrelated to this PR.

Notes

  • git-annex-standalone requires the 3rd party repo from https://git-annex.branchable.com/install/rpm_standalone/ — it is not available in base or EPEL repos.
  • On Fedora, only git-annex is available (no standalone variant), so the ansible_distribution == 'Fedora' check is necessary.

The quvi package has been retired from Fedora and is no longer
available. It was originally added as a bundled dependency in 2017
but was never actually used by obal code. Since quvi was the only
Fedora-specific package, the entire Fedora packages task block
is removed.

Fixes theforeman#434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant