Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR! failed to combine variables, expected dicts but got a 'AnsibleUnicode' and a 'Ansi #2

Closed
jaredledvina opened this issue Mar 8, 2016 · 3 comments

Comments

@jaredledvina
Copy link
Contributor

Hi,

Not sure what I'm messing up, but I'm receiving the follow error when applying this runbook:

ERROR! failed to combine variables, expected dicts but got a 'AnsibleUnicode' and a 'Ansi

---
-
  hosts: host1
  become: yes
  roles:
    - role: ansible-sensu

I think it's the way ansible is trying to combine vars. I've commented out the vars being used in roles/ansible-sensu/defaults/main.yml from roles/ansible-sensu/vars/Debian.yml but hit the same issue later one.

ansible --version
ansible 2.1.0 (devel d60f0c94f8) last updated 2016/03/06 15:05:35 (GMT -700)
  lib/ansible/modules/core: (detached HEAD 0bbb7ba38d) last updated 2016/02/29 19:37:22 (GMT -700)
  lib/ansible/modules/extras: (detached HEAD 39e4040685) last updated 2016/02/29 19:37:22 (GMT -700)
  config file = <homedir>/ansible-test/ansible.cfg
  configured module search path = Default w/o overrides

Any help would be greatly appreciated. Thanks!

@cmacrae
Copy link

cmacrae commented Mar 8, 2016

Hey @jaredledvina 👋

This role hasn't been tested with Ansible 2.1 - I suspect this is the problem, as I've seen this same error message when operating on other roles written for 2.0 whilst using 2.1.

Could you please try with the latest Ansible 2.0 release?

@jaredledvina
Copy link
Contributor Author

Hey @cmacrae,

Yep! That worked, I'll see if I can figure out what changed in 2.1 and make a pull request, thanks for the tip

@cmacrae
Copy link

cmacrae commented Mar 8, 2016

@jaredledvina great! Yeah, sweet - so long as the changes suggested are backwards compatible with 2.0 releases, I'd really appreciate that 👍

@cmacrae cmacrae closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants