Command-line tool
ansible-lint
brew/ansible-lint
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Checks ansible playbooks for practices and behaviour
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install ansible_lint
macOS
brew install ansible-lint pipx install ansible_lint
Linux
brew install ansible-lint pipx install ansible_lint
Lint a specific playbook and a role directory
ansible-lint path/to/playbook_file path/to/role_directory
Lint a playbook while excluding specific rules
ansible-lint -x rule1,rule2,... path/to/playbook_file
Lint a playbook in offline mode and format output as PEP8
ansible-lint -o -p path/to/playbook_file
Related command-line tools
- ansible
Automate deployment, configuration, and upgrading - salt-lint
Check for best practices in SaltStack - ansible-creator
CLI tool for scaffolding Ansible Content - ansible-language-server
Language Server for Ansible Files - ansible-builder
CLI tool for building Ansible Execution Environments (Containers) - molecule
Automated testing for Ansible roles - hadolint
Smarter Dockerfile linter to validate best practices docker cli portable static-analysis devops-tools linter haskell… - terraform-inventory
Go app which generates a dynamic Ansible inventory from a Terraform state file
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents