Closed Cust0mfirmware closed 1 week ago
Fixed by adding the following to the pre-commit config file:
# Uncomment if you need the full Ansible community bundle instead of ansible-core:
additional_dependencies:
- ansible
Source: https://ansible.readthedocs.io/projects/lint/configuring/#pre-commit-setup
Summary
If I try to commit something and the ansible-lint pre-commit hook is triggered, i am getting the following error message:
couldn't resolve module/action 'community.general.lxc_container'.
I have installed the community.general collection via ansible-galxy and if I execute ansible-lint manually, the module can be resolved.
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Desired Behavior
Module community.general.lxc_container should be resolved.
Actual Behavior
Error: couldn't resolve module/action 'community.general.lxc_container'.