Replies: 2 comments 1 reply
-
Do you mean |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you considered making the change in such way that ansible loads this variables? You could use inventory for that and achieve the same effect without having to add a new feature to the linter. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello World!
While trying to get my code square and clean, I'm facing a "nasty" issue: our code is usually running in CI, namely Zuul. Zuul provides some parameters directly to the env, allowing to consume a mighty
zuul
mapping.Of course, since it comes from an external service, ansible-lint doesn't know about that parameter, and crashes with
internal-error
since the parameter isn't known:A nice way to work around that specific issue would be to add a new configuration parameter, such as
mock_parameters
, in the same way we currently have themock_roles
andmock_modules
.We would then pass this to the ansible-lint configuration file:
allowing then to get things working as expected.
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions