This commit is contained in:
2026-02-12 15:54:10 +02:00
parent 6bcc60cf5e
commit 3ce31fb571
2 changed files with 190 additions and 0 deletions

View File

@@ -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) }}"