Hi All,
I have a playbook ran and got desired below output. Could anyone please help me how to iterate and get the Fan block which status is degraded.
TASK [debug] *******************
task path: /home/dev/test.yml:13
ok: [localhost] => {
“msg”: {
“Fan Block 1”: {
“label”: “Fan Block 1”,
“speed”: [
94,
“Percentage”
],
“status”: “OK”,
“zone”: “System”
},
“Fan Block 2”: {
“label”: “Fan Block 2”,
“speed”: [
94,
“Percentage”
],
“status”: “Degraded”,
“zone”: “System”
},
“Fan Block 3”: {
“label”: “Fan Block 3”,
“speed”: [
94,
“Percentage”
],
“status”: “OK”,
“zone”: “System”
},
}
}