From 99a6beeac586661ed4f40373affe3c259455eedf Mon Sep 17 00:00:00 2001 From: pavel Date: Tue, 18 Nov 2025 15:22:37 +0200 Subject: [PATCH] 1522 --- files/ansible-playbooks/sot-updater.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/files/ansible-playbooks/sot-updater.yml b/files/ansible-playbooks/sot-updater.yml index 13c5e03..db0876d 100644 --- a/files/ansible-playbooks/sot-updater.yml +++ b/files/ansible-playbooks/sot-updater.yml @@ -447,6 +447,16 @@ 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) }}" + - 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) when: not ssid_strict_ok | default(false) delegate_to: localhost @@ -472,7 +482,7 @@ {{ (ssid_strict_ok | default(false)) | ternary( - ssid_strict_count // 2, + (ssid_strict_count | default(0)) // 2, (ssid_fallback_count | default(0)) // 2 ) }}