Added yum-cron update_cmd option.
This commit is contained in:
parent
2757c67c23
commit
4b9f939e35
@ -1,3 +1,4 @@
|
||||
---
|
||||
|
||||
yum_cron_enabled: false
|
||||
yum_cron_update_cmd: 'security'
|
||||
|
@ -15,6 +15,15 @@
|
||||
notify:
|
||||
- Restart yum-cron
|
||||
|
||||
- name: Replace | Enable update applying for yum-cron (CentOS)
|
||||
replace:
|
||||
dest: /etc/yum/yum-cron.conf
|
||||
regexp: "^update_cmd = default"
|
||||
replace: "update_cmd = {{ yum_cron_update_cmd }}"
|
||||
when: yum_cron_enabled
|
||||
notify:
|
||||
- Restart yum-cron
|
||||
|
||||
- name: Service | Enable yum-cron (CentOS)
|
||||
service:
|
||||
name: yum-cron
|
||||
|
@ -4,3 +4,4 @@
|
||||
hosts: seed:overcloud
|
||||
roles:
|
||||
- role: yum
|
||||
- role: yum-cron
|
||||
|
4
etc/kayobe/yum-cron.yml
Normal file
4
etc/kayobe/yum-cron.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
|
||||
#yum_cron_enabled: false
|
||||
#yum_cron_update_cmd: 'security'
|
Loading…
Reference in New Issue
Block a user