Skip to content
Snippets Groups Projects
Commit 76d92029 authored by Chris Hines's avatar Chris Hines
Browse files

insert a random sleep for these cron jobs so all nodes are not executing at the same time

parent 5c5e85be
No related branches found
No related tags found
1 merge request!456insert a random sleep for these cron jobs so all nodes are not executing at the same time
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
cron_file: mclastlogin cron_file: mclastlogin
hour: "1" hour: "1"
minute: "0" minute: "0"
job: "{{ install_path}}/bin/mclastlogin --configdir {{ install_path }}" job: "sleep $[ ( $RANDOM % 100 ) + 1 ]s ; {{ install_path}}/bin/mclastlogin --configdir {{ install_path }}"
name: "mclastlogin" name: "mclastlogin"
user: "{{ cron_user }}" user: "{{ cron_user }}"
become: true become: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment