From 28d4ea523d73d4a80de19b2010cbf3427b982170 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 8 Sep 2026 11:18:29 +0200 Subject: [PATCH] fix: declare the dependency on the collection community.general On Archlinux ansible.builtin.package resolves to the module pacman, which is shipped by community.general and not by ansible-core. Without the collection the role fails with "Could not find a matching action for the pacman package manager", which surfaced in the molecule scenario as soon as only the explicitly declared collections were installed. Co-authored-by: Copilot --- README.md | 3 ++- molecule/default/collections.yml | 1 + requirements.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 514114c..3aaf9dc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ trust store. ## Requirements -The role relies on the modules of the collection `community.crypto`. +The role relies on the modules of the collection `community.crypto`. On Archlinux the collection `community.general` +is additionally required, because it provides the `pacman` module. ```bash ansible-galaxy collection install -r requirements.yaml diff --git a/molecule/default/collections.yml b/molecule/default/collections.yml index a868d81..7943412 100644 --- a/molecule/default/collections.yml +++ b/molecule/default/collections.yml @@ -3,3 +3,4 @@ collections: - name: community.crypto - name: community.docker +- name: community.general diff --git a/requirements.yaml b/requirements.yaml index a868d81..7943412 100644 --- a/requirements.yaml +++ b/requirements.yaml @@ -3,3 +3,4 @@ collections: - name: community.crypto - name: community.docker +- name: community.general