Added yum-cron update_cmd option.
This commit is contained in:
@@ -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'
|
Reference in New Issue
Block a user