Compare commits
2 Commits
e19d4210d3
...
1962dd9a84
| Author | SHA1 | Date | |
|---|---|---|---|
| 1962dd9a84 | |||
| 151d689ac8 |
@@ -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 }}"
|
||||||
@@ -964,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
|
||||||
@@ -1020,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
|
||||||
@@ -1046,13 +1046,12 @@
|
|||||||
-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}" \
|
||||||
"wget -O '{{ dev2_image_path }}' 'https://cloud.ikeja.co.za/firmwares/uboot/{{ bootenv_filename }}'"
|
"curl -L --fail --silent --show-error -k -o '{{ dev2_image_path }}' 'https://cloud.ikeja.co.za/firmwares/uboot/{{ bootenv_filename }}'"
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
register: scp_bootenv
|
register: scp_bootenv
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|
||||||
|
|
||||||
- name: Compute sha256 of bootenv image on DEV2 after copy (or if already present)
|
- name: Compute sha256 of bootenv image on DEV2 after copy (or if already present)
|
||||||
when: local_img.stat.exists and dev2_passfile_used != "NONE" and not (_blocked | default(false))
|
when: local_img.stat.exists and dev2_passfile_used != "NONE" and not (_blocked | default(false))
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
@@ -1065,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