Skip to content

Variable naming conventions #159

@widhalmt

Description

@widhalmt

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.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationhelp wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions