Added yum-cron update_cmd option.

This commit is contained in:
Jonathan Davies 2017-11-01 13:20:15 +00:00
parent 2757c67c23
commit 4b9f939e35
4 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,4 @@
--- ---
yum_cron_enabled: false yum_cron_enabled: false
yum_cron_update_cmd: 'security'

View File

@ -15,6 +15,15 @@
notify: notify:
- Restart yum-cron - 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) - name: Service | Enable yum-cron (CentOS)
service: service:
name: yum-cron name: yum-cron

View File

@ -4,3 +4,4 @@
hosts: seed:overcloud hosts: seed:overcloud
roles: roles:
- role: yum - role: yum
- role: yum-cron

4
etc/kayobe/yum-cron.yml Normal file
View File

@ -0,0 +1,4 @@
---
#yum_cron_enabled: false
#yum_cron_update_cmd: 'security'