Closed widhalmt closed 2 months ago
My first thought was that you meant a new repo with just a single role, but you're thinking of an extra role in this repo?
I do think this seems like a clean solution. As long as it is the same repo it shouldn't add any extra burden on contributors and reviewers.
Yes, I'm thinking of a role in this very repo. Like roles/elasticstack
. And have all "global" variables in there.
Like in https://stackoverflow.com/questions/67213727/ansible-collections-collection-level-variable we could build a role called
elasticstack
. This will only holddefaults/main.yml
andREADME.md
. All variables we use in all roles could be set there. So we had them in a central place to change and document. And we could get rid of those pesky linter messages about variable names not matching role names.