Ansible – ‘ERROR! failed to combine variables, expected dicts but got a…’

Recently I’ve been using Ansible, for ops work. So far it’s been relatively straight forward and pain free, but today I ran into a (stupid) error that had me stumped for about an hour. If you see something along these lines…

ERROR! failed to combine variables, expected dicts but got a ‘dict’ and a ‘AnsibleUnicode’:

make sure that the only files in the group_vars folder are the yml files you intend as variables. Any other files must be deleted. Hopefully this small trick can save someone else from the hour of head scratching I experienced today.

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *