1733
This commit is contained in:
@@ -483,7 +483,7 @@
|
|||||||
else (rebootin | int if ((rebootin | default('') | string | trim) is match('^\\d+$') ) else -1)
|
else (rebootin | int if ((rebootin | default('') | string | trim) is match('^\\d+$') ) else -1)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
- name: Compute reboot flags (requested? seconds? minutes?)
|
- name: Compute reboot flags requested and seconds
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
_reboot_requested: "{{ _reboot_is_now or _reboot_is_int }}"
|
_reboot_requested: "{{ _reboot_is_now or _reboot_is_int }}"
|
||||||
@@ -496,8 +496,13 @@
|
|||||||
if (_reboot_requested | default(false))
|
if (_reboot_requested | default(false))
|
||||||
else 0
|
else 0
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
- name: Derive reboot minutes from seconds
|
||||||
|
delegate_to: localhost
|
||||||
|
ansible.builtin.set_fact:
|
||||||
_reboot_minutes: "{{ ((_reboot_seconds | int) // 60) if (_reboot_seconds | int) > 0 else 0 }}"
|
_reboot_minutes: "{{ ((_reboot_seconds | int) // 60) if (_reboot_seconds | int) > 0 else 0 }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Debug reboot plan summary
|
- name: Debug reboot plan summary
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user