From 1d7b85630a22ad4f53cc6d94e40eb385c5acc953 Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 22 Oct 2025 15:40:38 +0300 Subject: [PATCH] 1539 --- files/ansible-playbooks/update-indoor.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/files/ansible-playbooks/update-indoor.yml b/files/ansible-playbooks/update-indoor.yml index 7ce044a..b70359e 100644 --- a/files/ansible-playbooks/update-indoor.yml +++ b/files/ansible-playbooks/update-indoor.yml @@ -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