From 9cadae0ba33202213a750e7fc1f91d6b5463f32f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 8 Sep 2026 09:11:56 +0200 Subject: [PATCH] fix(ci): resolve collections for ansible-lint The ansible-lint action only installs collections from a requirements file it knows about. Since this project uses requirements.yaml instead of the auto-detected requirements.yml, the collections were never installed and the syntax-check rule failed with unresolvable modules. The requirements file is now passed explicitly to the action. Additionally containers.podman is declared as dependency, because the molecule scenario uses containers.podman.podman_container. Co-authored-by: Copilot --- .gitea/workflows/ansible-linters.yaml | 1 + requirements.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitea/workflows/ansible-linters.yaml b/.gitea/workflows/ansible-linters.yaml index 0b81b76..a9aea56 100644 --- a/.gitea/workflows/ansible-linters.yaml +++ b/.gitea/workflows/ansible-linters.yaml @@ -17,4 +17,5 @@ jobs: uses: ansible/ansible-lint@665d9e07a1943254d2910faffc106adaf7ea7294 # v26.8.0 with: args: "--config-file .ansible-lint" + requirements_file: "requirements.yaml" setup_python: "true" diff --git a/requirements.yaml b/requirements.yaml index 3725f78..74ba4b1 100644 --- a/requirements.yaml +++ b/requirements.yaml @@ -2,3 +2,4 @@ collections: - name: community.crypto +- name: containers.podman