ansible-lint icon indicating copy to clipboard operation
ansible-lint copied to clipboard

ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you

Results 318 ansible-lint issues
Sort by recently updated
recently updated
newest added

Quick PR to address my feedback in https://github.com/ansible/ansible-lint/pull/2263#pullrequestreview-1067565024

enhancement
refactoring

TODO: - [ ] Improve dumping templates that need to be wrapped due to length - [ ] Add more test cases - [ ] Reword the PR description -...

enhancement

Starting to pull in possible rule ideas from the community of practice: https://github.com/redhat-cop/automation-good-practices/pull/64 A task in a task file or play performs an action, the name of the task should...

new rule

##### Summary For readability and line length reasons I prefer folding long lines using YAML's block scalar functionality, however the yaml[line-length] rule can't seem to be skipped using no-qa comment...

new
bug

##### Summary It appears there is a conflict with how molecule and ansible-lint install a project if it is a collection. Molecule uses `ansible-galaxy` to install the collection in the...

bug

##### Summary Selecting profiles on the command-line doesn't work with "-P profile", only with "-P=profile". This doesn't work: ``` ansible-lint -P basic test.yml ansible-lint: error: argument -P/--profile: invalid choice: 'test.yml'...

bug

##### Summary PR #2202 for #1446 fixed many false `load-failure` violations we have. However, it seems the fix doesn't handle cases when `include_tasks` is placed inside a `block`. ##### Issue...

bug

Valid: - only one `main.yml` file - all other files have `_` prefix - all other files are in subdirectories Invalid: - multiple files in tasks/ Reasonint: We want to...

new rule

The use of with_ is "discouraged" and "loop" is preferred. Although with_ is not deprecated, this would be a good optional rule for people wanting to future proof their playbooks.

new rule