I have a variable containing json:
{
"ansible_facts": {
"ansible_network_resources": {
"interfaces": [
{
"description": "*** - LOCAL A - ***",
"enabled": true,
"name": "FastEthernet0"
},
{
"description": "*** - LOCAL B - ***",
"enabled": true,
"name": "GigabitEthernet1/0/1"
},
{
"description": "*** - LOCAL C - ***",
"enabled": true,
"name": "FastEthernet1"
}
]
}
}
}
And I need to populate a variable with the name of the interface when the description contains a certain word.