add some mising cron settings
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-06-19 11:25:20 +02:00
parent e04363701d
commit 647572b08f
3 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -2,7 +2,8 @@
- name: Converge
hosts: all
vars:
yum_cron_enabled: True
yum_cron_enabled:
enabled: True
roles:
- role: xoxys.yum

View File

@ -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