Trying to parse route information in ansible to something like below. What's the right way to do
[
{
"destination": '10.110.2.192',
"gateway": '10.110.0.129'
"interface": 'eth2'
},
{
"destination": '10.110.2.64',
"gateway": '10.110.0.129'
"interface": 'eth2'
},
{
"destination": '10.110.1.0',
"gateway": '0.0.0.0'
"interface": 'eth0'
},
{
"destination": '10.110.1.128',
"gateway": '0.0.0.0'
"interface": 'eth2'
},
{
"destination": '0.0.0.0',
"gateway": '10.110.1.1'
"interface": 'eth0'
}
]