AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents