This commit is contained in:
2026-01-20 18:20:36 +02:00
parent c1c3c0c011
commit 303422757f
2 changed files with 132 additions and 3 deletions

View File

@@ -734,6 +734,23 @@
ansible.builtin.fail:
msg: "DEV2 md5sum for /tmp/config.json is empty; file missing or md5sum unavailable."
- name: PHASE 1 | DEV2 backup original config to /tmp/config-orig.json
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="cp /tmp/config.json /tmp/config-orig.json"
{{ dev2_exec_cmd }}
args: { executable: /bin/bash }
changed_when: true
- name: PHASE 1 | DEV2 set /tmp/ptsd.inprogress marker before controller config copy
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="touch /tmp/ptsd.inprogress"
{{ dev2_exec_cmd }}
args: { executable: /bin/bash }
changed_when: true
- name: PHASE 1 | Download /tmp/config.json from DEV2 to controller (tunnel)
when: dev2_conn_final == "tunnel"
delegate_to: localhost
@@ -995,6 +1012,30 @@
- "DEV2 md5={{ dev2_dhcp_md5.stdout | trim }}"
- name: PHASE 1 | DEV2 copy uploaded config to /tmp/config-test.json
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="cp /tmp/config-dhcp.json /tmp/config-test.json"
{{ dev2_exec_cmd }}
args: { executable: /bin/bash }
changed_when: true
- name: PHASE 1 | DEV2 arm parachute reboot delayed 600 seconds
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="reboot -d 600 &"
{{ dev2_exec_cmd }}
args: { executable: /bin/bash }
changed_when: true
- name: PHASE 1 | DEV2 simulate upgrade marker AA_startedupgrade
delegate_to: localhost
ansible.builtin.shell: |
export DEV2_CMD="touch AA_startedupgrade"
{{ dev2_exec_cmd }}
args: { executable: /bin/bash }
changed_when: true
post_tasks:
- name: Cleanup note