From 3d540d04ba3537dc06f63ede1a6c8a39edf510e0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 18:24:36 -0500 Subject: [PATCH] Add ansible-lint CI with a baseline of known findings (manual-only for now) - .gitea/workflows/lint.yaml calls DevOps/software-infrastructure's reusable-ansible-role-lint workflow. Manual-only until the shared runner and CI tools image are ready; the push/pull_request trigger is in the file header. - .ansible-lint-ignore baselines the existing findings (ansible-lint 26.11.0), so the check passes today and fails on new problems. Refs DevOps/software-infrastructure#53 Co-Authored-By: Claude Opus 5.5 --- .ansible-lint-ignore | 4 ++++ .gitea/workflows/lint.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .ansible-lint-ignore create mode 100644 .gitea/workflows/lint.yaml diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..91dfa21 --- /dev/null +++ b/.ansible-lint-ignore @@ -0,0 +1,4 @@ +# This file contains ignores rule violations for ansible-lint +playbooks/deploy-eom.yml syntax-check[specific] +tests/render.yml no-relative-paths +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