This commit is contained in:
2026-07-14 10:55:37 +03:00
parent 1b360c685a
commit 4cd177f517

View File

@@ -748,7 +748,7 @@
shell: |
sshpass -p '{{ dev1_pass }}' ssh {{ ssh_opts_common }} \
"{{ dev1_user }}@{{ ansible_host|default(inventory_hostname) }}" \
"grep -E '\"auto_ssid\":' /tmp/config.json 2>/dev/null | head -n1 | awk -F: '{print \$2}' | tr -d '[:space:],\"' || true"
"grep -E '\"auto_ssid\":' /tmp/config.json 2>/dev/null | head -n1 | sed -nE 's/^[[:space:]]*\"auto_ssid\"[[:space:]]*:[[:space:]]*(true|false)[[:space:]]*,?[[:space:]]*$/\1/p' || true"
register: auto_ssid_raw
changed_when: false
failed_when: false