CI: ansible-lint caller and baseline (G6)

Manual-only caller of the shared reusable role-lint workflow, plus a
generated .ansible-lint-ignore so existing findings warn and new ones
fail. CI files only; nothing the role deploys changes.

tests/test.yml named a role that does not exist, so its syntax check
could only be baselined; it now names this repo.

Refs DevOps/software-infrastructure#54

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 18:28:02 -05:00
co-authored by Claude Opus 5.5
parent 332433bd1e
commit 2cdf6ff9c5
3 changed files with 41 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
# 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/main.yml fqcn[action-core]
tasks/main.yml no-changed-when
tasks/main.yml no-handler
tasks/main.yml yaml[comments]
tests/test.yml name[play]
tests/test.yml yaml[comments]
vars/main.yml yaml[comments]
+27
View File
@@ -0,0 +1,27 @@
# ansible-lint for this role. DevOps/software-infrastructure#54 (G6).
# 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
+1 -1
View File
@@ -3,4 +3,4 @@
- hosts: localhost
remote_user: root
roles:
- ansible-role-tor
- ansible-role-tor-controller