From eb150e1f72c7f551a0b7571d830c358aafee17f2 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 24 Apr 2025 07:54:45 +0200 Subject: [PATCH] standard: Add python3-libdnf5 for Ansible support Ansible's package builtin [1] uses dnf's Python API. This fails by default with "Could not import the libdnf5 python module". This is awkward and laborious to work around in Containerfiles, as you can't use the normal `package:` to install, so it would require distribution/release specific code, and replicating this to all playbooks. In particular this fixes linux-system-roles for running during bootc container builds. [1] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/package_module.html --- standard/manifest.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/standard/manifest.yaml b/standard/manifest.yaml index 4810817..217086e 100644 --- a/standard/manifest.yaml +++ b/standard/manifest.yaml @@ -42,6 +42,8 @@ packages: - zram-generator # This one is in Python so isn't in FCOS, but we can safely add it here. - sos + # Make Ansible "package" builtin work by default + - python3-libdnf5 # These are random architecture-specific packages packages-x86_64: