This commit is contained in:
2025-11-18 10:10:52 +02:00
parent 151d689ac8
commit 1962dd9a84

View File

@@ -29,7 +29,7 @@
# Bootenv image to stage on DEV2
bootenv_filename: "fox200_bootenv.bin"
bootenv_sha256: "ea928431c905a6a3f4c418be79e66bbd4cc6894a81e94b2e519d3e0e0aeba63c"
bootenv_sha256: "fcdea1909faff462a1d2791ddf513a52"
# Aliases to reuse existing image_* logic (no firmware anymore, just bootenv)
image_filename: "{{ bootenv_filename }}"
@@ -589,6 +589,7 @@
set -e
PORT="{{ _local_port }}"
sshpass -f basicpass2 ssh \
-o AddressFamily=inet \
-o StrictHostKeyChecking=no -o PubkeyAuthentication=no \
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
-o ConnectTimeout=30 \
@@ -963,7 +964,7 @@
delegate_to: localhost
ansible.builtin.shell: |
set -e
sha256sum "{{ bootenv_filename }}" | awk '{print $1}'
md5sum "{{ bootenv_filename }}" | awk '{print $1}'
register: local_sha256
changed_when: false
ignore_errors: true
@@ -1019,7 +1020,7 @@
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
-o ConnectTimeout=30 \
-p "$PORT" "{{ dev2_ssh_user }}@${HOST}" \
"[ -f '{{ dev2_image_path }}' ] && sha256sum '{{ dev2_image_path }}' 2>/dev/null | awk '{print \$1}' || echo NOSHA"
"[ -f '{{ dev2_image_path }}' ] && md5sum '{{ dev2_image_path }}' 2>/dev/null | awk '{print \$1}' || echo NOSHA"
args:
executable: /bin/bash
register: dev2_sha256_before
@@ -1063,7 +1064,7 @@
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
-o ConnectTimeout=30 \
-p "$PORT" "{{ dev2_ssh_user }}@${HOST}" \
"sha256sum '{{ dev2_image_path }}' 2>/dev/null | awk '{print \$1}' || echo NOSHA"
"md5sum '{{ dev2_image_path }}' 2>/dev/null | awk '{print \$1}' || echo NOSHA"
args:
executable: /bin/bash
register: dev2_sha256_after