when conditional syntax update

This commit is contained in:
tolerryan
2026-09-01 22:40:07 +00:00
parent 1ed9aed202
commit fd620429ab

View File

@@ -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