Ansible Lint is a command-line tool for linting playbooks, roles and collections aimed towards any Ansible users. Its main goal is to promote proven practices, patterns and behaviors while avoiding common pitfalls that can easily lead to bugs or make code harder to maintain. Ansible lint is also supposed to help users upgrade their code to work with newer versions of Ansible. Due to this reason we recommend using it with the newest version of Ansible, even if the version used in production may be older. As any other linter, it is opinionated. Still, its rules are the result of community contributions and they can always be disabled based individually or by category by each user. ansible-lint checks playbooks for practices and behavior that could potentially be improved. As a community-backed project ansible-lint supports only the last two major versions of Ansible.

Features

  • The tool produces output on both stdout and stderr
  • As part of the execution, the linter will likely need to create a cache of installed or mocked roles, collections and modules
  • In order to ease tool adoption, git users can enable the progressive mode using --progressive option
  • We recommend following the collection structure layout
  • When you call ansible-lint without arguments the tool will use its internal heuristics to determine file types
  • A JSON report, based on codeclimate specification, can be generated with ansible-lint

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow Ansible-lint

Ansible-lint Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ansible-lint!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Development Software, Python Education Software, Python Command Line Tools, Python Linters

Registered

2022-03-10