Add ansible-lint CI with a baseline of known findings (manual-only for now)
Demo / hello (push) Successful in 28s
Demo / hello (push) Successful in 28s
- .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 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# This file contains ignores rule violations for ansible-lint
|
||||
defaults/main.yml yaml[comments]
|
||||
handlers/main.yml yaml[comments]
|
||||
meta/main.yml meta-incorrect
|
||||
meta/main.yml schema[meta]
|
||||
meta/main.yml yaml[comments]
|
||||
tasks/actions.yaml fqcn[action-core]
|
||||
tasks/actions.yaml name[casing]
|
||||
tasks/actions_host.yaml name[casing]
|
||||
tasks/gitea.yaml fqcn[action-core]
|
||||
tasks/gitea.yaml name[casing]
|
||||
tasks/gitea.yaml no-changed-when
|
||||
tasks/gitea.yaml no-handler
|
||||
tasks/gitea.yaml yaml[indentation]
|
||||
tasks/gitea.yaml yaml[line-length]
|
||||
tasks/main.yml fqcn[action-core]
|
||||
tasks/main.yml name[casing]
|
||||
tasks/main.yml yaml[comments]
|
||||
tests/test.yml name[play]
|
||||
tests/test.yml yaml[comments]
|
||||
vars/main.yml yaml[comments]
|
||||
@@ -0,0 +1,29 @@
|
||||
# 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 the block below,
|
||||
# and delete demo.yaml, which this replaces (kept until then as the role's
|
||||
# on-push smoke test).
|
||||
#
|
||||
# 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
|
||||
Reference in New Issue
Block a user