fix random time scheduling
This commit is contained in:
parent
0cf6190b81
commit
5db0f67110
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@
|
|||
- name: Schedule nightly-update.sh to run between 5:00-6:59 AM once
|
||||
shell: |
|
||||
hour=$(shuf -i 5-6 -n 1)
|
||||
minute=$(shuf -i 0-59 -n 1)
|
||||
minute=$(shuf -i 10-59 -n 1)
|
||||
echo "/usr/local/bin/nightly-update.sh" | at "$hour:$minute"
|
||||
echo "update and restart scheduled for $hour:$minute"
|
||||
register: restard_scheduled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue