Skip to content
Snippets Groups Projects
Commit ba36c885 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge branch 'randomcron' into 'master'

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

See merge request !456
parents f017d287 76d92029
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