Robert_F
(Robert F)
1
I’m about to use geerlingguy.apache and saw this code in the main.yml task:
`
- name: Define apache_packages.
set_fact:
apache_packages: “{{ __apache_packages | list }}”
when: apache_packages is not defined
`
What does this double underscore mean? __apache_packages
I know that double underscores usually indicate a private variable in some languages. Is that the meaning in Ansible/YAML?
I'm about to use geerlingguy.apache and saw this code in the main.yml task:
- name: Define apache_packages.
set_fact:
apache_packages: "{{ __apache_packages | list }}"
when: apache_packages is not defined
What does this double underscore mean? __apache_packages
For Ansible nothing other than that underscore is just a valid character for a variable.
I know that double underscores usually indicate a private variable in some
languages. Is that the meaning in Ansible/YAML?
You would need to ask the author of the role.