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