Configure ansible lint #11

Open
opened 2026-09-04 01:06:48 +02:00 by alessandrovitali · 1 comment
Owner

E.g.

---
# .ansible-lint
# Run from the repo root:  ansible-lint
# Style convention (NOT machine-enforced, enforced in review):
#   name -> become/when -> module/block -> register/notify, block last
# See https://ansible.readthedocs.io/projects/lint/profiles/
profile: shared

exclude_paths:
  - .cache/
  - .git/
  - .github/
  - molecule/
E.g. ```yaml --- # .ansible-lint # Run from the repo root: ansible-lint # Style convention (NOT machine-enforced, enforced in review): # name -> become/when -> module/block -> register/notify, block last # See https://ansible.readthedocs.io/projects/lint/profiles/ profile: shared exclude_paths: - .cache/ - .git/ - .github/ - molecule/ ```
Author
Owner

And run with

ansible-lint            # full check against the shared profile
ansible-lint --fix      # auto-normalizes name-first and block-last ordering
And run with ```bash ansible-lint # full check against the shared profile ansible-lint --fix # auto-normalizes name-first and block-last ordering ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/ansible#11