ansible-lint: Adjust pre-commit hooks dependencies

Dropping the ansible dependencies for ansible-lint will allow us to
catch missing dependencies collections in galaxy.yml. For collections
needed for contrib/ or tests/ (i.e: not part of core kubespray
dependencies), we can just configure ansible-lint to mock them.

This mean it won't check the mocked module parameters, but for those
area of the code base it's an acceptable trade-off.
This commit is contained in:
Max Gautier
2024-10-07 13:58:04 +02:00
parent 8aa4c9ac0c
commit a7ace2e55b
3 changed files with 2 additions and 4 deletions

View File

@@ -37,3 +37,5 @@ exclude_paths:
- tests/files/custom_cni/cilium.yaml
- venv
- .github
mock_modules:
- gluster.gluster.gluster_volume