mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Clean up "multiple secondary gateways" error handling
This commit is contained in:
parent
dc2c531947
commit
99a05c6a78
1 changed files with 4 additions and 3 deletions
|
@ -142,9 +142,10 @@
|
||||||
register: second_gateway_found
|
register: second_gateway_found
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- assert:
|
- name: Fail intentionally and explain, if multiple secondary gateways are detected
|
||||||
that: second_gateway_found.stdout_lines | length == 1
|
fail:
|
||||||
fail_msg: "IIAB currently DOES NOT SUPPORT multiple secondary gateways."
|
msg: "IIAB currently DOES NOT SUPPORT multiple secondary gateways: {{ second_gateway_found.stdout }}"
|
||||||
|
when: second_gateway_found.stdout_lines is defined and second_gateway_found.stdout_lines | length > 1
|
||||||
|
|
||||||
- name: Set exclude_devices if default gateway has been detected for {{ second_gateway_found.stdout }}
|
- name: Set exclude_devices if default gateway has been detected for {{ second_gateway_found.stdout }}
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue