Files
claudeandClaude Opus 5.5 b15bb337e9 G3: syntax-check and lint this repo's playbooks in CI
.gitea/scripts/check-playbooks.sh runs ansible-playbook --syntax-check on
every top-level playbook and ansible-lint (production profile, with
yamllint's rules) on the repo's own files, in a temporary copy with empty
secrets stubs, so it never touches a real secrets file. Roles are excluded;
they're linted in their own repos.

Baselines so the check passes today and fails on new problems:
- .gitea/playbooks-skip.txt: nine playbooks that fail the syntax check now
  (missing roles, an unknown module, an unfinished playbook), with reasons.
- .ansible-lint-ignore: 110 existing file/rule findings.

The workflow (.gitea/workflows/playbooks.yaml) is manual-only until S8 passes
and the ci-tools image is published; its header has the push/pull_request
trigger. Docs: docs/ci-cd/playbook-checks.md.

Refs DevOps/software-infrastructure#51

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:25:00 -05:00

16 lines
491 B
Plaintext

# ansible-lint settings for this repo's playbooks and vars.
# DevOps/software-infrastructure#51 (G3). CI: .gitea/workflows/playbooks.yaml.
#
# Roles are linted in their own repos (G5/G6), so roles/ is excluded here.
# Existing findings are listed in .ansible-lint-ignore, so the check passes
# today and fails on new problems. ansible-lint also applies yamllint's rules.
profile: production
offline: true
exclude_paths:
- roles/
- images/
- docs/
- .gitea/
- files/
- templates/