Skip to content

CICD-250 · Ansible linting ​

Encyclopedia · Ansible and configuration management · All snippets

Previous · CICD-249 · Next · CICD-251

1. Where it fits ​

  • Placement CI run step.
  • Prerequisites controller with reviewed inventory, pinned Ansible collections and a non-production target.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
ansible-lint --strict playbooks/site.yml

3. How it works ​

The linter applies project rules to the task and playbook definitions before a controller connects to hosts.

4. Verify the result ​

Run from a checkout with pinned rules and inspect warnings as deliberate review decisions.

Validation syntax-validated (Bash parse). Status definitions.