Commit 1b376669 by Matjaz Gregoric

Interface name is not always last token in output.

parent 5d9ccbbe
......@@ -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