Unverified Commit 1222f5a8 by Matjaz Gregoric Committed by Tobias Macey

Interface name is not always last token in output.

parent 932b3516
......@@ -31,7 +31,7 @@
- deploy
- name: Get name of default network interface
shell: "ip route show 0/0 | awk '{print $NF}'"
shell: "ip route show 0/0 | grep -oP '(?<=dev )[[:alnum:]]+'"
register: get_interface_name
when: ansible_distribution in common_debian_variants
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment