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”}]
Hi Dipun,
Could you please paste the playbook used?
You are trying to combine dict and AnsibleSequence (which is basically a list).