From b5729caa0e23ab872f548430035dad293617d2b2 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 19 Mar 2023 13:46:44 +0100 Subject: [PATCH] Add wait for interface to come up --- netbird_client/tasks/join-network.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/netbird_client/tasks/join-network.yml b/netbird_client/tasks/join-network.yml index 910f210..47d93bc 100644 --- a/netbird_client/tasks/join-network.yml +++ b/netbird_client/tasks/join-network.yml @@ -4,3 +4,10 @@ failed_when: command.rc != 0 changed_when: "'Connected' in command.stdout" register: command + +- name: Wait for netbird-interface to exist + wait_for: + path: "/sys/class/net/wt0" + state: present + when: command.changed +