From 3efaa2b80f107c38c06e63b421154511821ba5cc Mon Sep 17 00:00:00 2001 From: pavel Date: Tue, 18 Nov 2025 16:05:38 +0200 Subject: [PATCH] 1605 --- files/ansible-playbooks/sot-updater.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/files/ansible-playbooks/sot-updater.yml b/files/ansible-playbooks/sot-updater.yml index db0876d..d9bff13 100644 --- a/files/ansible-playbooks/sot-updater.yml +++ b/files/ansible-playbooks/sot-updater.yml @@ -429,6 +429,7 @@ payload_encoding: "string" changed_when: false + # ----------------------- Dev1 SSID count (strict then fallback) ----------------------- # ----------------------- Dev1 SSID count (strict then fallback) ----------------------- - name: Dev1 | Count SSID lines (strict 'ssid' + 'ikeja') delegate_to: localhost @@ -441,18 +442,12 @@ failed_when: false ignore_errors: true - - name: Dev1 | Decide if strict count usable - delegate_to: localhost - set_fact: - 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 + - name: Dev1 | Normalize strict SSID count delegate_to: localhost set_fact: ssid_strict_count: "{{ (ssid_strict_count_raw.stdout | default('0')) | trim | int }}" - - name: Dev1 | Set strict_ok flag + - name: Dev1 | Decide if strict count usable delegate_to: localhost set_fact: ssid_strict_ok: "{{ ssid_strict_count > 0 and (ssid_strict_count % 2 == 0) }}" @@ -496,7 +491,6 @@ - "ssid_fallback_count={{ ssid_fallback_count | default('n/a') }}" - "ssid_final_count={{ ssid_final_count | default('n/a') }}" - - name: Dev1 | Build multissidfix value delegate_to: localhost when: ssid_final_count is defined