Ansible-lint

Latest version: v24.12.2

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 18

5.0.5

Changes

Minor Changes

* Enable prepare_environment to be used without cli (1488) ssbarnea
* Make prerun module public (1483) ssbarnea
* Clarify that verbosity can be incremented (1478) ssbarnea

Bugfixes

* Fix prerun role-name message (1486) ssbarnea
* Fix install galaxy role warning message (1484) apatard
* Assure project_dir is always valid (1482) ssbarnea
* Add .cache folder to default exclude list (1479) ssbarnea
* Improve empty-string-compare rule (1480) ssbarnea
* Remove one false positive on pipe-fail rule (1477) ssbarnea
* Avoid warnings when not running inside git repos (1475) ssbarnea
* Asure matchtasks is runs on supported file kinds (1474) ssbarnea

5.0.4

Changes

Minor Changes

* Add ability to recognize base file types (1461) ssbarnea
* Make use of newer sphinx programoutput extension (1458) ssbarnea
* Avoid pre-run errors when role-name is disabled (1459) ssbarnea

Bugfixes

* Allow user to extend kinds without overriding defaults (1473) ssbarnea
* fix: flake8 error on mocked modules (1472) chilicheech
* Fixed matching patterns used for mocking (1470) ssbarnea
* Updated docs on communication channels (1469) ssbarnea
* Fix typo in configuration filename (1466) stoned
* Avoid exception when git is missing (1456) ssbarnea

5.0.3

Changes

Minor Changes

* Improve risky-shell-pipe rule matching (1453) ssbarnea
* Add optional rule that check for no-same-owner (1450) ssbarnea
* Allow user to specify namespace for standalone roles (1451) ssbarnea
* Add downstream testing pipeline (1434) ssbarnea

Bugfixes

* Undeprecate numeric rule tags (1452) ssbarnea
* Avoid reporting loading errors with vaulted files (1443) ssbarnea

5.0.2

Changes

* Update links to Ansible docs for new site layout (1382) ripleymj

Minor Changes

* Add ability to install v1 requiremets.yml (1385) ssbarnea

Bugfixes

* Fix installation of standalone roles (1397) ssbarnea
* Rewrite ansible version checking (1383) ssbarnea
* Improve ansible version check (1381) ssbarnea
* Disable action validation with tasks by default (1377) ssbarnea
* Add ability to detect molecule base.yml configs (1374) ssbarnea
* Fix file config extra_vars options loading (1372) skarzi
* Avoid same false positives with no-tabs rule (1373) ssbarnea
* Recognize collections.yml files (1371) ssbarnea
* Avoid reporting runtime errors with unknown file types (1370) ssbarnea

5.0.1

Changes

Minor Changes

* Remove obsolete changelog (1362) ssbarnea
* Adds experimental stdin support (1355) ssbarnea
* support extra_vars in syntax check rule (1342) skarzi
* Avoid duplicates when injecting extra ansible lookup paths (1348) joren485
* Fix sentence in usage.rst (1347) joren485

Bugfixes

* Recognize standalone galaxy roles (1363) ssbarnea
* Avoid overriding role paths defaults (1361) ssbarnea
* Fix patterns used to identify var files (1360) ssbarnea
* Fix environment variable name check in for loop (1352) joren485
* Ensure that yamllint config ignore entries are used (1346) felixfontein
* Fix parsing of unicode filenames reported by git ls-files (1339) (1340) phihos
* Correct skip tag for yamllint (1335) ssbarnea
* Fix literal-compare test with when sequences (1332) ssbarnea

5.0.0

Changes

This is a major new version that will surely break for users that have custom rules. It will also require most users to update the way they install the linter as they now need to mention which version of Ansible they want to use it with.

For guidance regarding upgrading please [read the docs](https://ansible-lint.readthedocs.io/en/latest/) and consult https://github.com/ansible-community/ansible-lint/discussions/1150

Please note that the changes listed before do not contain those from the pre-releases made since last stable release, read all.

Minor Changes

* Allow mocking of galaxy roles (1320) ssbarnea
* Add ability to mock roles from within collections (1318) ssbarnea
* Add offline mode for skipping requirements installation (1319) ssbarnea
* Add ability to mock modules from collections (1316) ssbarnea
* Add codeclimate formatter (json) (1308) thushjandan
* Make all rule identifiers text based (1306) ssbarnea
* Drop E suffix when printing rule id (1305) ssbarnea
* Add optional rule to check for loop var prefix (1303) ssbarnea
* Add ability to mock roles (1304) ssbarnea
* Recurse inside given folders (1302) ssbarnea

Bugfixes

* Avoid role-name errors with galaxy roles (1321) ssbarnea
* Avoid false positives with literal-compare (1315) ssbarnea
* Fix exclude_paths regression (1313) ssbarnea
* Avoid exceptions post syntax errors (1310) ssbarnea
* E206: Avoid false positives with multilines (1300) ssbarnea

Page 16 of 18

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.