Replies: 2 comments
-
I'm curious about this as well. I'm using The only workaround I've found so far is to exclude the path of the offending yaml in |
Beta Was this translation helpful? Give feedback.
-
Looks like any changes would go here (assuming the comment about generation from ansible-lint/src/ansiblelint/schemas/ansible.json Lines 43 to 65 in 4232927 I see ansible-lint/src/ansiblelint/schemas/ansible.json Lines 60 to 62 in 4232927 so something silly like become_method: "{{ 'ansible.netcommon.enable' }}" will pass, but that's not great |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the feeling that I'm missing something obvious, but I can't get ansible-lint to accept a
become_method
from another collection for theschema[tasks]
rule.Here is a minimal example to reproduce this behavior:
When encountering this task, ansible-lint exits with the following error message:
Looking at the JSON Schema for
become_method
, there doesn't seem to be a way to make ansible-lint happy, but there surely must be one.What's the recommended solution for this situation?
Beta Was this translation helpful? Give feedback.
All reactions