1554
This commit is contained in:
@@ -870,6 +870,28 @@
|
||||
delegate_to: localhost
|
||||
when: is_run_by_effective == 'scheduler'
|
||||
|
||||
|
||||
- name: Scheduler | Compute action_restart_timestamp (unix seconds) when rebootin == 0
|
||||
ansible.builtin.set_fact:
|
||||
action_restart_timestamp: "{{ lookup('pipe','date -u +%s') | int }}"
|
||||
changed_when: false
|
||||
delegate_to: localhost
|
||||
when:
|
||||
- is_run_by_effective == 'scheduler'
|
||||
- reboot_seconds is defined
|
||||
- (reboot_seconds | int) == 0
|
||||
|
||||
- name: Scheduler | Compute action_restart_timestamp (unix seconds) when reboot scheduled
|
||||
ansible.builtin.set_fact:
|
||||
action_restart_timestamp: "{{ (lookup('pipe','date -u +%s') | int) + (reboot_seconds | int) }}"
|
||||
changed_when: false
|
||||
delegate_to: localhost
|
||||
when:
|
||||
- is_run_by_effective == 'scheduler'
|
||||
- reboot_seconds is defined
|
||||
- (reboot_seconds | int) > 0
|
||||
|
||||
|
||||
- name: Scheduler | Compute action_restart_timestamp (unix seconds) when reboot scheduled
|
||||
ansible.builtin.set_fact:
|
||||
action_restart_timestamp: "{{ (lookup('pipe','date -u +%s') | int) + (reboot_seconds | int) }}"
|
||||
|
||||
Reference in New Issue
Block a user