This commit is contained in:
2025-10-22 23:16:08 +03:00
parent c589c2b991
commit 45c3e5ff7c

View File

@@ -490,6 +490,8 @@
reboot_hours: "{{ (rebootin | default('') | string) | trim | int }}"
reboot_seconds: "{{ ((rebootin | default('') | string) | trim | int) * 3600 }}"
reboot_minutes: "{{ ((rebootin | default('') | string) | trim | int) * 60 }}"
_reboot_seconds: "{{ reboot_seconds | int }}"
_reboot_minutes: "{{ reboot_minutes | int }}"
reboot_requested: true
@@ -516,7 +518,7 @@
- name: Compute reboot delay (add 20s grace)
delegate_to: localhost
ansible.builtin.set_fact:
reboot_delay_seconds: "{{ reboot_seconds + 20 }}"
reboot_delay_seconds: "{{ (reboot_seconds | int) + 20 }}"
reboot_delay_minutes: "{{ ((reboot_seconds + 20) / 60) | int }}"
@@ -1025,7 +1027,7 @@
ansible.builtin.set_fact:
au_attempt: 1
au_max_attempts: 3
au_delay_sec: "{{ reboot_delay_seconds + 360 }}"
au_delay_sec: "{{ (reboot_seconds | int) + 360 }}"
when: not (_blocked | default(false)) and (_write_success | bool)
delegate_to: localhost