Hello,
I am trying to enforce a conditional match to check if a VLAN is configured on a switch before applying changes
I can see that the variable is being recorded, but the match against it always results in the skipping of the task ‘interface e01’ even though the vlan number is present.
PLAY [arista] ******************************************************************
TASK [check VLAN] **************************************************************
ok: [arista]
TASK [debug] *******************************************************************
ok: [arista] => {
“msg”: “test: [u’VLAN Name Status Ports\n----- -------------------------------- --------- -------------------------------\n1 default active Et2, Et3\n100 VLAN0100 active Et1\n200 VLAN0200 active \n’]”
}
TASK [interface e01] ***********************************************************
skipping: [arista]
playbook file: