ansible-lint
Apply rules and follow best practices with your automation content. tldr-pages
On several platforms
Several platforms
Lint a specific playbook and a role directory
ansible-lint path/to/playbook_file path/to/role_directoryIdentifyLint a playbook while excluding specific rules
ansible-lint --exclude-rules rule1,rule2,... path/to/playbook_fileIdentifyLint a playbook in offline mode and format output as PEP8
ansible-lint --offline --parseable path/to/playbook_fileIdentifyLint a playbook using a custom rules directory
ansible-lint --rules path/to/custom_rules_directory path/to/playbook_fileIdentifyLint all Ansible content recursively in a given directory
ansible-lint path/to/project_directoryIdentify