From fd302e4ebc622430061e5b8b076898aaa9b887a1 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 19 Mar 2023 13:47:01 +0100 Subject: [PATCH] Move regather facts to join when changed --- netbird_client/tasks/join-network.yml | 3 +++ netbird_client/tasks/main.yml | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/netbird_client/tasks/join-network.yml b/netbird_client/tasks/join-network.yml index 47d93bc..7d79bfa 100644 --- a/netbird_client/tasks/join-network.yml +++ b/netbird_client/tasks/join-network.yml @@ -11,3 +11,6 @@ state: present when: command.changed +- name: Gather facts to get changes + ansible.builtin.gather_facts: + when: command.changed diff --git a/netbird_client/tasks/main.yml b/netbird_client/tasks/main.yml index b698801..ae57758 100644 --- a/netbird_client/tasks/main.yml +++ b/netbird_client/tasks/main.yml @@ -2,5 +2,3 @@ - import_tasks: ./join-network.yml -- name: Gather facts to get changes - ansible.builtin.gather_facts: