diff --git a/defaults/main.yml b/defaults/main.yml index d4d93f1..0ae37f9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,6 +6,7 @@ yum_cron_download_updates: yes yum_cron_email_from: root@localhost yum_cron_email_to: root yum_cron_emit_via: stdio +yum_cron_random_sleep: 360 # yum_repositories: (defaults to not set) # epel: diff --git a/templates/etc/yum/yum-cron.conf.j2 b/templates/etc/yum/yum-cron.conf.j2 index 818ff61..b427c5b 100644 --- a/templates/etc/yum/yum-cron.conf.j2 +++ b/templates/etc/yum/yum-cron.conf.j2 @@ -27,7 +27,7 @@ apply_updates = {{ yum_cron_apply_updates }} # times that multiple systems will access update servers. If # random_sleep is 0 or negative, the program will run immediately. # 6*60 = 360 -random_sleep = 360 +random_sleep = {{ yum_cron_random_sleep }} [emitters]