Sometimes, when I browse an Ansible role, I see that a developer has put double underscores for a variable.
As Ansible is based on Python, I assumed it was a Pythonic thingy.
When I read the docs of Ansible, it states:
In many programming languages, variables that begin with an underscore are private. This is not true in Ansible. Variables that begin with an underscore are treated exactly the same as any other variable. Do not rely on this convention for privacy or security.
But, as I look at the variables, I'm actually not sure why this is done.
Q: Can someone explain to me in detail what the reason is to apply double underscores for varaibles in Ansible?