1539
This commit is contained in:
@@ -990,6 +990,23 @@
|
|||||||
|
|
||||||
# ──────────────────────────────── NEW: derive expected version for the checker ────────────────────────────────
|
# ──────────────────────────────── NEW: derive expected version for the checker ────────────────────────────────
|
||||||
|
|
||||||
|
# >>> ADDED: initialize scheduling window so au_delay_sec exists for the derivation <<<
|
||||||
|
- name: Init after-upgrade scheduling vars (attempt 1 + delay from reboot + 6m)
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
au_attempt: 1
|
||||||
|
au_max_attempts: 3
|
||||||
|
au_delay_sec: "{{ (_reboot_seconds | int) + 360 }}"
|
||||||
|
when: not (_blocked | default(false)) and (_write_success | bool)
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- name: Generate correlation ID and original emitted timestamp
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
au_correlation_id: "{{ lookup('pipe', 'date +%s%N | sha1sum | cut -c1-12') }}"
|
||||||
|
au_original_emitted_at: "{{ lookup('pipe', 'date -u +%FT%TZ') }}"
|
||||||
|
when: au_delay_sec is defined
|
||||||
|
delegate_to: localhost
|
||||||
|
# <<< END ADDED >>>
|
||||||
|
|
||||||
# --- SAFE expected target derivation (split into separate set_fact tasks) ---
|
# --- SAFE expected target derivation (split into separate set_fact tasks) ---
|
||||||
- name: Derive expected indoor firmware from image filename (safe – base)
|
- name: Derive expected indoor firmware from image filename (safe – base)
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user