1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Disallow multi-line var second_gateway_found ~= exclude_devices

This commit is contained in:
A Holt 2022-08-03 22:27:44 -04:00 committed by GitHub
parent 6bb19e2ad2
commit dc2c531947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,6 +142,10 @@
register: second_gateway_found
changed_when: False
- assert:
that: second_gateway_found.stdout_lines | length == 1
fail_msg: "IIAB currently DOES NOT SUPPORT multiple secondary gateways."
- name: Set exclude_devices if default gateway has been detected for {{ second_gateway_found.stdout }}
set_fact:
exclude_devices: "{{ second_gateway_found.stdout }}"