I'm facing some issue related to format my json in ansible code.
Here is some example of my json:
{
"POC": {
"Endpoint:dest:one_1": {
"1_key": "bla1",
"2_key": "bla2",
"3_key": "bla3",
"4_key": "bla4"
},
"Endpoint:dest:two_2": {
"1_key": "bla1",
"2_key": "bla2",
"3_key": "bla3",
"4_key": "bla4"
},
"some_value": "something",
"some_target": "destination",
"type": "cool",
"verify": false
}
My problem is that this format is not correct, and I need params "some_value", "some_target", "type", "verify" to have at beginning of my json config.
Expected json:
{
"POC": {
"some_value": "something",
"some_target": "destination",
"type": "cool",
"verify": false,
"Endpoint:dest:one_1": {
"1_key": "bla1",
"2_key": "bla2",
"3_key": "bla3",
"4_key": "bla4"
},
"Endpoint:dest:two_2": {
"1_key": "bla1",
"2_key": "bla2",
"3_key": "bla3",
"4_key": "bla4"
}
}
}
Do you know some method or do you have any idea how I can achieve that?