This commit is contained in:
2025-10-22 15:40:38 +03:00
parent 110301f862
commit 1d7b85630a

View File

@@ -990,6 +990,23 @@
# ──────────────────────────────── 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) ---
- name: Derive expected indoor firmware from image filename (safe base)
delegate_to: localhost