# Getting Error

**URL:** <https://forum.ansible.com/t/getting-error/35294>\
**Category:** Ansible Project\
**Created:** [June 6, 2021, 12:02pm UTC](https://forum.ansible.com/t/getting-error/35294 "2021-06-06T12:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipun\_Dwibedy](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Dipun\_Dwibedy](https://forum.ansible.com/u/Dipun_Dwibedy)\
**Post date:** [June 6, 2021, 12:02pm UTC](https://forum.ansible.com/t/getting-error/35294/1 "2021-06-06T12:02:51Z")

</div>

ansible-playbook switch.yml -v  
Using /home/sidwi/ansible/ansible.cfg as config file  
ERROR! failed to combine variables, expected dicts but got a ‘dict’ and a ‘AnsibleSequence’:  
{}  
[{“hostname”: “switch1”, “dev\_vlan”: 2, “pro\_vlan”: 3, “pro\_vlan\_ip”: “10.100.10.1”, “pro\_vlan\_network”: “10.100.10.0”, “pro\_vlan\_net\_mask”: “255.255.255.0”, “dev\_vlan\_ip”: “10.100.20.1”, “dev\_vlan\_network”: “10.100.20.0”, “dev\_vlan\_net\_mask”: “255.255.255.0”, “dev\_vlan\_dhcp\_ex\_st”: “10.100.10.1”, “dev\_vlan\_dhcp\_ex\_en”: “10.100.10.254”, “pro\_vlan\_dhcp\_ex-st”: “10.100.20.1”, “pro\_vlan\_dhcp\_ex\_en”: “10.100.20.254”}, {“hostname”: “switch2”, “dev\_vlan”: 3, “pro\_vlan\_ip”: “10.100.10.1”, “pro\_vlan\_network”: “10.100.10.0”, “pro\_vlan\_net\_mask”: “255.255.255.0”, “dev\_vlan\_ip”: “10.100.20.1”, “dev\_vlan\_network”: “10.100.20.0”, “dev\_vlan\_net\_mask”: “255.255.255.0”, “dev\_vlan\_dhcp\_ex\_st”: “10.100.10.1”, “dev\_vlan\_dhcp\_ex\_en”: “10.100.10.254”, “pro\_vlan\_dhcp\_ex-st”: “10.100.20.1”, “pro\_vlan\_dhcp\_ex\_en”: “10.100.20.254”}]

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [June 15, 2021, 4:18am UTC](https://forum.ansible.com/t/getting-error/35294/2 "2021-06-15T04:18:51Z")

</div>

Hi Dipun,

Could you please paste the playbook used?

You are trying to combine dict and AnsibleSequence (which is basically a list).
