Ansible-lint should warn about multiple registration of the same variable #4789
Unanswered
d-mankowski-synerise
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider
One would expect, that since
_cloud
isazure
, then the secondansible.builtin.command
is not executed, just like secondregister
. However, that is not the case:As you can see, even though task
Content is bar
was skipped, the value of_var
was changed. It is very easy to miss that, and debugging is usually really annoying, if someone is not aware of this behavior. IMO anisble-lint should report if the same variable is registered more than once.Beta Was this translation helpful? Give feedback.
All reactions