feat: add support for ansible-lint scanner for Ansible
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
This update adds support for ansible-lint, a tool that scans and lints Ansible playbooks, to the code quality scanning integration. The changes include:
- Adding ansible-lint to the list of supported code quality scanners in the README
- Creating a new template file (ansible-lint.yml) that defines how the ansible-lint scanner will run
- Updating the main configuration to include the ansible-lint template
- Adding a new parameter for the ansible-lint container image
The ansible-lint scanner will automatically run when YAML files are detected in the repository, generating code quality reports in the standard format. Like other scanners in this collection, it can be configured with a custom configuration file and will be included in merge request pipelines to help identify potential issues in Ansible code.
This merge request is part of #7 (closed)
Edited by Norman Debald