File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,19 @@ repos:
158
158
hooks :
159
159
- id : ansible-lint
160
160
additional_dependencies :
161
- # For some reason ansible-lint does not know about the
162
- # existence of ansible.posix.mount unless ansible itself is
163
- # added as an extra dependency. I (jsf9k) believe this is
164
- # because ansible is not installed when ansible-lint is
165
- # installed.
166
- - ansible
161
+ # Per the documentation and the pre-commit hook
162
+ # configuration, ansible-lint does not know about modules
163
+ # that live outside of ansible-core. See these links for
164
+ # more details:
165
+ # - https://github.com/ansible/ansible-lint/blob/main/src/ansiblelint/rules/syntax_check.md#syntax-checkunknown-module
166
+ # - https://github.com/ansible/ansible-lint/blob/ad0157eb38059b02d57458504340209f221e3189/.pre-commit-hooks.yaml#L14-L19
167
+ #
168
+ # Since ansible.posix.mount lives inside of the ansible
169
+ # package itself, we must include that package here.
170
+ #
171
+ # Note also that for consistency's sake we pull in the same
172
+ # version of ansible that is used in requirements-test.txt.
173
+ - ansible>=8,<10
167
174
# files: molecule/default/playbook.yml
168
175
169
176
# Terraform hooks
You can’t perform that action at this time.
0 commit comments