Compare commits

..

3 Commits

Author SHA1 Message Date
fd302e4ebc Move regather facts to join when changed 2023-03-19 13:47:01 +01:00
b5729caa0e Add wait for interface to come up 2023-03-19 13:46:44 +01:00
dca40ed835 Remove throttle 2023-03-19 13:46:21 +01:00
2 changed files with 10 additions and 3 deletions

View File

@ -4,4 +4,13 @@
failed_when: command.rc != 0 failed_when: command.rc != 0
changed_when: "'Connected' in command.stdout" changed_when: "'Connected' in command.stdout"
register: command register: command
throttle: 1
- name: Wait for netbird-interface to exist
wait_for:
path: "/sys/class/net/wt0"
state: present
when: command.changed
- name: Gather facts to get changes
ansible.builtin.gather_facts:
when: command.changed

View File

@ -2,5 +2,3 @@
- import_tasks: ./join-network.yml - import_tasks: ./join-network.yml
- name: Gather facts to get changes
ansible.builtin.gather_facts: