Variables starting with underscore violate Ansible documentation rule
jlmuir opened this issue · 4 comments
In vars/{Debian,RedHat}.yml
, two variables are defined that start with an underscore character: __ruby_packages
and __ruby_build_packages
, but in the Ansible User Guide at Working With Playbooks > Using Variables > Creating valid variable names, it says:
Variable names should be letters, numbers, and underscores. Variables should always start with a letter.
Hmm, now I see that you do this in a number of your published roles and recommend it in your "Ansible for DevOps" book in Appendix B - Ansible Best Practices and Conventions > Playbook Organization > Use role defaults and vars correctly.
Frankly, this scheme seems quite reasonable to me, and I'd like to use it in roles I create, but I'm struggling with how to reconcile it with the variable naming rule I pointed out in the Ansible User Guide.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
Thats is actually quite interesting after 4 years.