In Ansible, in a role, I have vars files like this:
vars/ app1.yml app2.yml
Each file contains vars specific to an app/website like
Starting with Ansible v2.0 you can do it:
- name: merging hash_a and hash_b into hash_c set_fact: hash_c="{{ hash_a|combine(hash_b) }}"
Check more under Ansible filters - Combining hashes/dictionaries (coming from Jinja2)