Files
ansible-role-root/.gitea/workflows/ansible-linters.yml
T
volker.raschekandCopilot c6c6e65a34
Ansible Linter / ansible-lint (push) Successful in 1m31s
Lint Markdown files / markdown-lint (push) Successful in 10s
Molecule / Molecule (push) Successful in 4m39s
fix(ci): install Molecule collections before linting
Install test dependencies so ansible-lint can resolve the container modules used by the Molecule scenario.

Co-authored-by: Copilot <copilot@github.com>
2026-10-18 15:24:01 +02:00

23 lines
586 B
YAML

name: Ansible Linter
on:
pull_request:
types: [ "opened", "reopened", "synchronize" ]
push:
branches: [ '**' ]
tags-ignore: [ '**' ]
jobs:
ansible-lint:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
- name: Run ansible-lint
uses: ansible/ansible-lint@v25.2.1
with:
args: "--config-file .ansible-lint.yml"
# The molecule scenario is linted as well, so its collections are required beside the ones of the role.
requirements_file: "molecule/default/collections.yml"
setup_python: "true"