1055
This commit is contained in:
@@ -748,7 +748,7 @@
|
|||||||
shell: |
|
shell: |
|
||||||
sshpass -p '{{ dev1_pass }}' ssh {{ ssh_opts_common }} \
|
sshpass -p '{{ dev1_pass }}' ssh {{ ssh_opts_common }} \
|
||||||
"{{ dev1_user }}@{{ ansible_host|default(inventory_hostname) }}" \
|
"{{ 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
|
register: auto_ssid_raw
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|||||||
Reference in New Issue
Block a user