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 <copilot@github.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
|
||||
collections:
|
||||
- name: community.crypto
|
||||
- name: containers.podman
|
||||
|
||||
Reference in New Issue
Block a user