This commit is contained in:
2025-10-22 22:31:07 +03:00
parent 4109a75aa2
commit ae46bfcb3f

View File

@@ -492,11 +492,13 @@
_reboot_is_int: "{{ (rebootin | default('') | string | trim) is match('^\\d+$') }}"
_reboot_hours: >-
{{
0 if _reboot_is_now
else (rebootin | int if _reboot_is_int else -1)
0
if ((rebootin | default('') | string | trim | lower) in ['', 'now', 'immediate'])
else (rebootin | int if ((rebootin | default('') | string | trim) is match('^\\d+$')) else -1)
}}
- name: Debug reboot normalization detail
delegate_to: localhost
ansible.builtin.debug: