The infra/ansible repository has a configuration file for pre-commit, but with the exception of yamllint, all checks are commented out.
The repository already contains a substantial amount of code that isn’t compliant with best Ansible practices, and this makes introduction of new issues even easier.
At the same time. The yamllint is not pinned to hash, but to tag. Which is not necessarily a big deal. Unless the maintainer were to be compromised, and tag moved so it would point to code that would steal your credentials etc.
I suggest that we restore the hooks and pin them to hashes. The change will impact everyone working in the repo. So I want to bring it up here, before I make a PR.
I know that ansible-lint can be uncompromising, so I propose to create a .ansible-lint-ignore setting the current state of the sources as a baseline.
This way we can avoid making massive changes to the repo to satisfy the linter, and instead improve the quality gradually.