Contents

ansible-lint 24.2.2

0

Checks playbooks for practices and behavior that could potentially be improved

Checks playbooks for practices and behavior that could potentially be improved

Stars: 3320, Watchers: 3320, Forks: 624, Open Issues: 85

The ansible/ansible-lint repo was created 10 years ago and the last code push was 3 hours ago.
The project is very popular with an impressive 3320 github stars!

How to Install ansible-lint

You can install ansible-lint using pip

pip install ansible-lint

or add it to a project with poetry

poetry add ansible-lint

Package Details

Author
None
License
GPLv3+
Homepage
None
PyPi:
https://pypi.org/project/ansible-lint/
GitHub Repo:
https://github.com/ansible-community/ansible-lint

Classifiers

  • Software Development/Quality Assurance
  • Software Development/Testing
  • System/Systems Administration
  • Utilities
No  ansible-lint  pypi packages just yet.

Errors

A list of common ansible-lint errors.

Code Examples

Here are some ansible-lint code examples and snippets.

GitHub Issues

The ansible-lint package has 85 open issues on GitHub

  • Refactor matchtasks() to reduce complexity
  • Add ability to load .config/.ansible-lint
  • Remove min space requirement for inline comments
  • Redefine yaml formatting rules to match other tools
  • integrate collection documentation regeneration
  • Unhandled exception when trying to lint an included task file with invalid syntax
  • Integrate WPS into flake8
  • var-naming standards include capital letters; capital letters trigger linting errors.
  • ansible-lint risky-file-permissions error when state=absent
  • Add ability to automatically fix simple errors
  • Make ansible-lint able to use JSON schemas for validating files
  • yamllint config with 'level': 'warning', will trigger fatal violation
  • [TODO] Fix the eco job
  • Adopt ansible-compat
  • Refactor to remove wcmatch dependency (research)

See more issues on GitHub

Related Packages & Articles

tox 4.14.2

tox is a generic virtualenv management and test command line tool