Dot Notation vs Bracket Notation in Ansible and Jinja
Prefer dot notation for fixed keys. Use bracket notation only when dot notation cannot express the access safely or correctly.
Prefer dot notation for fixed keys. Use bracket notation only when dot notation cannot express the access safely or correctly.
From Ansible 2.18 onward, pass every variable an included role needs but does not own explicitly via vars: on ansible.builtin.include_role or ansible.builtin.import_role, so the role does not silently fall back to defaults or receive untemplated values from hostvars.