Using Variables — Ansible Documentation
docs.ansible.com › playbooks_variablesAnsible merges different variables set in inventory so that more specific settings override more generic settings. For example, ansible_ssh_user specified as a group_var is overridden by ansible_user specified as a host_var. For details about the precedence of variables set in inventory, see How variables are merged. Footnotes. 1