This commit is contained in:
parent
e04363701d
commit
647572b08f
@ -1,5 +1,10 @@
|
||||
---
|
||||
yum_cron_enabled: False
|
||||
yum_cron_enabled:
|
||||
enabled: False
|
||||
name: yum-cron
|
||||
minute: 0
|
||||
hour: 4
|
||||
|
||||
yum_cron_custom_cronjob: False
|
||||
yum_cron_apply_updates: no
|
||||
yum_cron_download_updates: yes
|
||||
|
@ -2,7 +2,8 @@
|
||||
- name: Converge
|
||||
hosts: all
|
||||
vars:
|
||||
yum_cron_enabled: True
|
||||
yum_cron_enabled:
|
||||
enabled: True
|
||||
|
||||
roles:
|
||||
- role: xoxys.yum
|
||||
|
@ -40,12 +40,12 @@
|
||||
|
||||
- name: Configure crontab to use custom yum-cron cronjob
|
||||
cron:
|
||||
name: yum-cron
|
||||
minute: 0
|
||||
hour: 3
|
||||
name: "{{ yum_cron_custom_cronjob.name | default('yum-cron') }}"
|
||||
minute: "{{ yum_cron_custom_cronjob.minute | default(0) }}"
|
||||
hour: "{{ yum_cron_custom_cronjob.hour | default(4) }}"
|
||||
user: root
|
||||
cron_file: /etc/crontab
|
||||
job: "/bin/sh /etc/cron.d/x-yum"
|
||||
become: True
|
||||
become_user: root
|
||||
when: yum_cron_custom_cronjob
|
||||
when: yum_cron_custom_cronjob.enabled | bool
|
||||
|
Loading…
Reference in New Issue
Block a user