2305
This commit is contained in:
@@ -490,6 +490,8 @@
|
|||||||
reboot_hours: "{{ (rebootin | default('') | string) | trim | int }}"
|
reboot_hours: "{{ (rebootin | default('') | string) | trim | int }}"
|
||||||
reboot_seconds: "{{ ((rebootin | default('') | string) | trim | int) * 3600 }}"
|
reboot_seconds: "{{ ((rebootin | default('') | string) | trim | int) * 3600 }}"
|
||||||
reboot_minutes: "{{ ((rebootin | default('') | string) | trim | int) * 60 }}"
|
reboot_minutes: "{{ ((rebootin | default('') | string) | trim | int) * 60 }}"
|
||||||
|
_reboot_seconds: "{{ reboot_seconds | int }}"
|
||||||
|
_reboot_minutes: "{{ reboot_minutes | int }}"
|
||||||
reboot_requested: true
|
reboot_requested: true
|
||||||
|
|
||||||
|
|
||||||
@@ -516,7 +518,7 @@
|
|||||||
- name: Compute reboot delay (add 20s grace)
|
- name: Compute reboot delay (add 20s grace)
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.set_fact:
|
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 }}"
|
reboot_delay_minutes: "{{ ((reboot_seconds + 20) / 60) | int }}"
|
||||||
|
|
||||||
|
|
||||||
@@ -1025,7 +1027,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
au_attempt: 1
|
au_attempt: 1
|
||||||
au_max_attempts: 3
|
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)
|
when: not (_blocked | default(false)) and (_write_success | bool)
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user