From f595f383554355cccf65e8b1400b38ff5bfbac25 Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 22 Oct 2025 22:56:30 +0300 Subject: [PATCH] 2256 --- files/ansible-playbooks/update-indoor.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/files/ansible-playbooks/update-indoor.yml b/files/ansible-playbooks/update-indoor.yml index a7cf2ce..b78328e 100644 --- a/files/ansible-playbooks/update-indoor.yml +++ b/files/ansible-playbooks/update-indoor.yml @@ -484,14 +484,13 @@ # ---------------------------- Normalize rebootin early (HOURS) ---------------------------- # Accept: "", "now", "immediate", numeric (4), numeric string ("4"), or "4h" - - name: Normalize rebootin detect now or integer HOURS + - name: Normalize rebootin (strict hours → seconds/minutes) delegate_to: localhost ansible.builtin.set_fact: - # treat rebootin as hours; consumer always passes a number (e.g., 4) - _reboot_raw: "{{ rebootin | default('') | string | trim }}" - _reboot_is_now: false - _reboot_is_int: "{{ (_reboot_raw | length) > 0 }}" - _reboot_hours: "{{ rebootin | int }}" + reboot_hours: "{{ rebootin | int }}" + reboot_requested: true + reboot_seconds: "{{ (rebootin | int) * 3600 + 20 }}" + reboot_minutes: "{{ (rebootin | int) * 60 }}" - name: Debug reboot normalization detail delegate_to: localhost