This commit is contained in:
2025-11-18 15:22:37 +02:00
parent c520077fc3
commit 99a6beeac5

View File

@@ -447,6 +447,16 @@
ssid_strict_count: "{{ (ssid_strict_count_raw.stdout | default('0')) | trim | int }}" ssid_strict_count: "{{ (ssid_strict_count_raw.stdout | default('0')) | trim | int }}"
ssid_strict_ok: "{{ ssid_strict_count > 0 and (ssid_strict_count % 2 == 0) }}" ssid_strict_ok: "{{ ssid_strict_count > 0 and (ssid_strict_count % 2 == 0) }}"
- name: Dev1 | Decide if strict count usable
delegate_to: localhost
set_fact:
ssid_strict_count: "{{ (ssid_strict_count_raw.stdout | default('0')) | trim | int }}"
- name: Dev1 | Set strict_ok flag
delegate_to: localhost
set_fact:
ssid_strict_ok: "{{ ssid_strict_count > 0 and (ssid_strict_count % 2 == 0) }}"
- name: Dev1 | Count SSID lines (fallback exclude bssid/auto_ssid/SC/backhaul) - name: Dev1 | Count SSID lines (fallback exclude bssid/auto_ssid/SC/backhaul)
when: not ssid_strict_ok | default(false) when: not ssid_strict_ok | default(false)
delegate_to: localhost delegate_to: localhost
@@ -472,7 +482,7 @@
{{ {{
(ssid_strict_ok | default(false)) (ssid_strict_ok | default(false))
| ternary( | ternary(
ssid_strict_count // 2, (ssid_strict_count | default(0)) // 2,
(ssid_fallback_count | default(0)) // 2 (ssid_fallback_count | default(0)) // 2
) )
}} }}