Thanks it worked.
I get all this extra debug info. Is there a way to display only the 2nd line: "msg": "Name is Vlan1 and status is administratively down"?
TASK [display output] ******************************************************************************************************************
ok: [
burnside-poc-sw8.gw.mcgill.ca] => (item={'status': u'administratively down', 'protocol': u'down', 'name': u'Vlan1', 'ok': u'YES', 'ipaddress': u'unassigned', 'method': u'NVRAM'}) => {
"msg": "Name is Vlan1 and status is administratively down"
}
ok: [
burnside-poc-sw8.gw.mcgill.ca] => (item={'status': u'up', 'protocol': u'up', 'name': u'Vlan99', 'ok': u'YES', 'ipaddress': u'172.31.35.8', 'method': u'NVRAM'}) => {
"msg": "Name is Vlan99 and status is up"
}
ok: [
burnside-poc-sw8.gw.mcgill.ca] => (item={'status': u'administratively down', 'protocol': u'down', 'name': u'Vlan252', 'ok': u'YES', 'ipaddress': u'unassigned', 'method': u'NVRAM'}) => {
"msg": "Name is Vlan252 and status is administratively down"