diff --git a/playbooks/roles/system_crontab_coordination/templates/crontab.j2 b/playbooks/roles/system_crontab_coordination/templates/crontab.j2 index 0dfcb66afe..c455a0adc0 100644 --- a/playbooks/roles/system_crontab_coordination/templates/crontab.j2 +++ b/playbooks/roles/system_crontab_coordination/templates/crontab.j2 @@ -23,7 +23,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin {%- if ((hosts | length) | int) > (period | int) -%} 0 {%- else -%} - {{ (((period | int) / ((hosts | length) | int)) | int) | random }} + {{ (((period | int) / ((hosts | length) | int)) | int) | random(seed=inventory_hostname) }} {%- endif -%} {%- endmacro %} {% for host in ansible_play_hosts %}