From 2489c951348895c174c33eec2aabc6c56a5f21d1 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Mon, 24 Nov 2025 10:31:56 -0600 Subject: [PATCH] netbird setup improvements --- roles/lib/setup-netbird.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/lib/setup-netbird.yml b/roles/lib/setup-netbird.yml index 0ddce91..2f75ec4 100644 --- a/roles/lib/setup-netbird.yml +++ b/roles/lib/setup-netbird.yml @@ -47,7 +47,8 @@ ansible.builtin.command: netbird status register: netbird_status ignore_errors: yes + changed_when: False - name: Start NetBird if needed ansible.builtin.command: netbird up --management-url https://api.netbird.io --setup-key "{{ netbird_setup_key }}" - when: "'Daemon status: NeedsLogin' in netbird_status.stdout" \ No newline at end of file + when: netbird_status.stdout is search("NeedsLogin") \ No newline at end of file