fix(ci): resolve collections for ansible-lint
Lint Markdown files / markdown-lint (push) Successful in 11s
Ansible Linter / ansible-lint (push) Successful in 1m53s
Molecule / Molecule (push) Failing after 2m36s

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 <copilot@github.com>
This commit is contained in:
2026-09-08 09:11:56 +02:00
co-authored by Copilot
parent 6d465e5dad
commit 9cadae0ba3
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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"
+1
View File
@@ -2,3 +2,4 @@
collections:
- name: community.crypto
- name: containers.podman