The newest version of ansible-lint says, variables within roles should use the role name as a prefix.
For the most part we already stick to that rule. But we have a bunch of variables that are global to the whole collection. They are mostly used for interaction between the roles in the collection. These are prefixed with elastic_.
How should we deal with this new rule?
Just put an exception into the ansible-lint configuration?
Rename the variables so that they are local to every role? If we need interaction we need a lot of set_fact for synchronization.
Come up with a completely different solution?
Find a way to have "global variables" in collections? A short search didn't reveal any option to do that.
The newest version of
ansible-lint
says, variables within roles should use the role name as a prefix.For the most part we already stick to that rule. But we have a bunch of variables that are global to the whole collection. They are mostly used for interaction between the roles in the collection. These are prefixed with
elastic_
.How should we deal with this new rule?
ansible-lint
configuration?set_fact
for synchronization.