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
Cut Cloud Costs with Google Compute Engine Icon
Cut Cloud Costs with Google Compute Engine

Save up to 91% with Spot VMs and get automatic sustained-use discounts. One free VM per month, plus $300 in credits.

Save on compute costs with Compute Engine. Reduce your batch jobs and workload bill 60-91% with Spot VMs. Compute Engine's committed use offers customers up to 70% savings through sustained use discounts. Plus, you get one free e2-micro VM monthly and $300 credit to start.
Try Compute Engine
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