1010
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
# Bootenv image to stage on DEV2
|
# Bootenv image to stage on DEV2
|
||||||
bootenv_filename: "fox200_bootenv.bin"
|
bootenv_filename: "fox200_bootenv.bin"
|
||||||
bootenv_sha256: "ea928431c905a6a3f4c418be79e66bbd4cc6894a81e94b2e519d3e0e0aeba63c"
|
bootenv_sha256: "fcdea1909faff462a1d2791ddf513a52"
|
||||||
|
|
||||||
# Aliases to reuse existing image_* logic (no firmware anymore, just bootenv)
|
# Aliases to reuse existing image_* logic (no firmware anymore, just bootenv)
|
||||||
image_filename: "{{ bootenv_filename }}"
|
image_filename: "{{ bootenv_filename }}"
|
||||||
@@ -589,6 +589,7 @@
|
|||||||
set -e
|
set -e
|
||||||
PORT="{{ _local_port }}"
|
PORT="{{ _local_port }}"
|
||||||
sshpass -f basicpass2 ssh \
|
sshpass -f basicpass2 ssh \
|
||||||
|
-o AddressFamily=inet \
|
||||||
-o StrictHostKeyChecking=no -o PubkeyAuthentication=no \
|
-o StrictHostKeyChecking=no -o PubkeyAuthentication=no \
|
||||||
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
|
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
|
||||||
-o ConnectTimeout=30 \
|
-o ConnectTimeout=30 \
|
||||||
@@ -963,7 +964,7 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.shell: |
|
ansible.builtin.shell: |
|
||||||
set -e
|
set -e
|
||||||
sha256sum "{{ bootenv_filename }}" | awk '{print $1}'
|
md5sum "{{ bootenv_filename }}" | awk '{print $1}'
|
||||||
register: local_sha256
|
register: local_sha256
|
||||||
changed_when: false
|
changed_when: false
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
@@ -1019,7 +1020,7 @@
|
|||||||
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
|
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
|
||||||
-o ConnectTimeout=30 \
|
-o ConnectTimeout=30 \
|
||||||
-p "$PORT" "{{ dev2_ssh_user }}@${HOST}" \
|
-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:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
register: dev2_sha256_before
|
register: dev2_sha256_before
|
||||||
@@ -1063,7 +1064,7 @@
|
|||||||
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
|
-o PreferredAuthentications=password -o NumberOfPasswordPrompts=1 \
|
||||||
-o ConnectTimeout=30 \
|
-o ConnectTimeout=30 \
|
||||||
-p "$PORT" "{{ dev2_ssh_user }}@${HOST}" \
|
-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:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
register: dev2_sha256_after
|
register: dev2_sha256_after
|
||||||
|
|||||||
Reference in New Issue
Block a user