2231
This commit is contained in:
@@ -492,11 +492,13 @@
|
|||||||
_reboot_is_int: "{{ (rebootin | default('') | string | trim) is match('^\\d+$') }}"
|
_reboot_is_int: "{{ (rebootin | default('') | string | trim) is match('^\\d+$') }}"
|
||||||
_reboot_hours: >-
|
_reboot_hours: >-
|
||||||
{{
|
{{
|
||||||
0 if _reboot_is_now
|
0
|
||||||
else (rebootin | int if _reboot_is_int else -1)
|
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
|
- name: Debug reboot normalization detail
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user