diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..f7b532e --- /dev/null +++ b/.ansible-lint-ignore @@ -0,0 +1,3 @@ +# This file contains ignores rule violations for ansible-lint +tasks/main.yml no-handler +tests/render.yml var-naming[read-only] diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 0000000..ce988bf --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,27 @@ +# ansible-lint for this role. DevOps/software-infrastructure#53 (G5). +# Uses the shared reusable workflow; see docs/ci-cd/adding-ci.md in +# DevOps/software-infrastructure. Known findings are baselined in +# .ansible-lint-ignore, so only new problems fail. +# +# Manual-only until the shared runner is proven stable (#41) and the CI +# tools image is published (#49). Then replace `on:` with: +# +# on: +# push: +# branches: [main] +# pull_request: +name: lint + +on: + workflow_dispatch: + +concurrency: + group: lint-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + ansible: + uses: DevOps/software-infrastructure/.gitea/workflows/reusable-ansible-role-lint.yaml@main