Add ansible-lint CI gate #1

Merged
jsanchezd merged 3 commits from feature/ansible-lint-ci into main 2026-10-01 15:01:37 +00:00
Owner

Rolls out the lint-gate half of the pattern proven on silvarion.repos/base/containers/databases/network/provision/devtools. Release pipeline to follow in a separate PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp

Rolls out the lint-gate half of the pattern proven on silvarion.repos/base/containers/databases/network/provision/devtools. Release pipeline to follow in a separate PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp
Add ansible-lint CI gate
Some checks failed
Ansible Lint / ansible-lint (pull_request) Failing after 3m5s
4d506e478f
Rolls out the lint-gate half of the pattern proven on silvarion.repos/
base/containers/databases/network/provision/devtools. Release pipeline
to follow in a separate PR once lint issues are addressed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp
Fix changelog config and remove stale already-released fragment
Some checks failed
Ansible Lint / ansible-lint (pull_request) Failing after 1m0s
ccd440610d
changelogs/config.yaml's sections map duplicated release_summary,
which also names prelude_name -- same bug class fixed in
silvarion.repos/databases (antsibull-changelog rejects a section
sharing the prelude's name).

changelogs/fragments/1.0.0.yml is stale: its content is already fully
recorded in changelogs/changelog.yaml (dated), so it was never
consumed by a real antsibull-changelog release -- deleted it to avoid
duplicating its release_summary against any future release's own.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp
Fix real ansible-lint failures and add release pipeline
All checks were successful
Ansible Lint / ansible-lint (pull_request) Successful in 40s
8affdb6b92
- .forgejo/workflows/ansible-lint.yml installed silvarion.databases,
  but galaxy.yml actually depends on silvarion.devtools, which itself
  transitively depends on silvarion.base -- both now installed
  explicitly before linting. Confirmed live: "Failed to resolve the
  requested dependencies map" for each in turn until both were added.
- galaxy.yml had a top-level requires_ansible key (not part of the
  official schema, fatal under the basic profile); meta/runtime.yml
  didn't exist -- created it with the same value.
- roles/php/molecule/default/verify.yml shelled out to `systemctl
  is-active` to check a service's state instead of using the systemd
  module -- switched to ansible.builtin.systemd (name only, no state,
  a genuine no-op query) checking .status.ActiveState instead of
  .stdout.
- Added .gitignore (didn't exist at all).
- Added .forgejo/workflows/release.yml, the antsibull-changelog
  release pipeline proven on silvarion.repos/base/containers/etc.

Verified end-to-end in a fresh container: ansible-lint 0 failures/0
warnings, and antsibull-changelog release+generate both succeed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012icUrjv3vgHtovVpHUFjdp
jsanchezd deleted branch feature/ansible-lint-ci 2026-10-01 15:01:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ansible-collections/silvarion.webservers!1
No description provided.