-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vars / defaults - possible naming conflict in code #757
Comments
Hi, thanks for your feedback.
Sure would be a nice enhancement to support annotations in
I'm not sure if that's really required. There should be no duplicate names for Ansible variables in |
Okay - I will look into that then - might take a while as I will be on vacation.
My thought was, that it might be good to separate them, so it is possible to list them independently from the defaults. In our case, when importing/including a role, the variables that are defined under I thought about using the key "defaults" and "vars" to make it more obvious in the code. Another topic could be to store the actual filename that contain the variables, maybe like this:
Here is an example for my specific use case:
As a default we follow the following schema to include var files if they exist via
If CIS hardening is used we read additional var files to overwrite the os default config following this schema:
It might be nice to see what different files exist under ansible-mdgen, which creates a lot of pages, even adds information to the documentation where the variable is referenced. |
No worries, enjoy your vacation 🏖️
Thanks for the detailed information. Makes sense to me, and I'm also fine to separate |
Hi,
thank you for your software! I was toying around with your tool today and was also looking into other tools that are trying to achieve similar things. One thing I'm currently missing is the possibility to add files under
vars/
to the readme.I had a quick glance into the source code to get an understanding how things work and how time consuming it would be to add the functionality.
So the first question would be, if you're open for adding the files under
vars/
to the readme? If so I see a naming conflict because you decided to store the data fromdefaults/
in the dict and everywhere else with the namevar
- see for example.I could try to do a PR for renaming all the stuff related to
defaults/
if you are considering changing the internal variable names.The text was updated successfully, but these errors were encountered: