- name: "Detect ands network interface" include_tasks: "find_interface_by_net.yml" vars: var: "ands_network_interface" net: "{{ ands_network }}" when: - ands_network_interface is not defined - ands_network is defined - name: "Detect ands network connection" include_tasks: "find_connection_by_if.yml" vars: var: "ands_network_connection" iface: "{{ ands_network_interface }}" when: - ands_network_connection is not defined - ands_network_interface is defined