when conditional syntax update
This commit is contained in:
@@ -109,7 +109,9 @@
|
|||||||
|
|
||||||
- name: Start NetBird if needed
|
- name: Start NetBird if needed
|
||||||
ansible.builtin.command: netbird up --management-url https://api.netbird.io --setup-key "{{ netbird_setup_key }}"
|
ansible.builtin.command: netbird up --management-url https://api.netbird.io --setup-key "{{ netbird_setup_key }}"
|
||||||
when: netbird_status.stdout is search("NeedsLogin") or search ("LoginFailed")
|
when: >
|
||||||
|
"NeedsLogin" in netbird_status.stdout or
|
||||||
|
"LoginFailed" in netbird_status.stdout
|
||||||
vars:
|
vars:
|
||||||
ansible_command_timeout: 3600
|
ansible_command_timeout: 3600
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|||||||
Reference in New Issue
Block a user