diff --git a/files/ansible-playbooks/ptsd_reacquire_attempt.yml b/files/ansible-playbooks/ptsd_reacquire_attempt.yml index e38421c..481c7c6 100644 --- a/files/ansible-playbooks/ptsd_reacquire_attempt.yml +++ b/files/ansible-playbooks/ptsd_reacquire_attempt.yml @@ -90,7 +90,7 @@ {{ pathprefix }} DIGITS="{{ dev2_lldp_digits }}"; cat /var/run/lldp_server.json 2>/dev/null \ - | grep "${DIGITS}" -A 10 \ + | grep -Ei "ikeja${DIGITS}" -A 10 \ | grep address \ | grep -vE 'subtype|ipv6' \ | awk -F'"' '{ print $4 }' \ @@ -104,7 +104,7 @@ {{ pathprefix }} DIGITS="{{ dev2_lldp_digits }}"; cat /var/run/lldp_server.json 2>/dev/null \ - | grep "${DIGITS}" -A 15 \ + | grep -Ei "ikeja${DIGITS}" -A 15 \ | grep 'address_ipv6' \ | awk -F'"' '{ print $4 }' \ | head -n1