Getting Error

58 views
Skip to first unread message

Dipun Dwibedy

unread,
Jun 6, 2021, 8:02:51 AM6/6/21
to Ansible Project
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"}]


Abhijeet Kasurde

unread,
Jun 15, 2021, 12:19:19 AM6/15/21
to ansible...@googlegroups.com
Hi Dipun,

Could you please paste the playbook used?

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

--
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-proje...@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.


--
Thanks,
Abhijeet Kasurde
Reply all
Reply to author
Forward
0 new messages