1605
This commit is contained in:
@@ -429,6 +429,7 @@
|
|||||||
payload_encoding: "string"
|
payload_encoding: "string"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
# ----------------------- Dev1 SSID count (strict then fallback) -----------------------
|
||||||
# ----------------------- Dev1 SSID count (strict then fallback) -----------------------
|
# ----------------------- Dev1 SSID count (strict then fallback) -----------------------
|
||||||
- name: Dev1 | Count SSID lines (strict 'ssid' + 'ikeja')
|
- name: Dev1 | Count SSID lines (strict 'ssid' + 'ikeja')
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
@@ -441,18 +442,12 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- 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 }}"
|
|
||||||
ssid_strict_ok: "{{ ssid_strict_count > 0 and (ssid_strict_count % 2 == 0) }}"
|
|
||||||
|
|
||||||
- name: Dev1 | Decide if strict count usable
|
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
set_fact:
|
set_fact:
|
||||||
ssid_strict_count: "{{ (ssid_strict_count_raw.stdout | default('0')) | trim | int }}"
|
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
|
delegate_to: localhost
|
||||||
set_fact:
|
set_fact:
|
||||||
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) }}"
|
||||||
@@ -496,7 +491,6 @@
|
|||||||
- "ssid_fallback_count={{ ssid_fallback_count | default('n/a') }}"
|
- "ssid_fallback_count={{ ssid_fallback_count | default('n/a') }}"
|
||||||
- "ssid_final_count={{ ssid_final_count | default('n/a') }}"
|
- "ssid_final_count={{ ssid_final_count | default('n/a') }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Dev1 | Build multissidfix value
|
- name: Dev1 | Build multissidfix value
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
when: ssid_final_count is defined
|
when: ssid_final_count is defined
|
||||||
|
|||||||
Reference in New Issue
Block a user