I can't rebuild a list of dictionary in Ansible code as below:
Input:
{
"list_report": [
{
"objectid": "8502d7d99a435532",
"value": "10.70.108.15,10.70.106.10,10.72.106.167"
}
]
}
To have in output:
{
"list_report": [
{
"objectid": "8502d7d99a435532",
"value": [10.70.108.15,10.70.106.10,10.72.106.167]
}
]
}
So, I need to keep item: objectid as it is, but, I want to change item: value from string to a list of IPs. I tried a lot of solution but nothing seems to work.
Can someone give me a clue?