Hi Dipun,

Could you please paste the playbook used?

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

On Sun, Jun 6, 2021 at 5:33 PM Dipun Dwibedy <sp.dwib...@gmail.com> wrote:

> 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"}]
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/5f825b68-e255-4eee-a670-f84c466727e3n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/5f825b68-e255-4eee-a670-f84c466727e3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHrGTjzt7_45dyJX9gJUaeSE3cuAjAUeHeAgOrvG3p5kew%40mail.gmail.com.

Reply via email to