\d needs to be escaped

This commit is contained in:
Egon Rijpkema 2018-09-11 15:49:44 +02:00
parent de998c6794
commit 1b84feb5ed
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
shell: "rm /var/run/netns/*"
ignore_errors: true
- name: Remove stale vxlan interfaces
shell: "for interface in $(ip link | grep DOWN | grep -Po 'vxlan-\d{1,2}'); do ip link del $interface ; done"
shell: "for interface in $(ip link | grep DOWN | grep -Po 'vxlan-\\d{1,2}'); do ip link del $interface ; done"
ignore_errors: true