diff --git a/roles/network/tasks/detected_network.yml b/roles/network/tasks/detected_network.yml index 21b33d844..a05dc7581 100644 --- a/roles/network/tasks/detected_network.yml +++ b/roles/network/tasks/detected_network.yml @@ -46,7 +46,7 @@ - name: Setting wan_in_interfaces set_fact: wan_in_interfaces: True - when: is_debuntu and wan_file.stdout|int >= "0" + when: is_debuntu and (wan_file.stdout|int > 0) # WIRELESS -- if any wireless is detected as gateway, it becomes WAN - name: Look for any wireless interfaces