roles/yum: Use YAML styled options.

This commit is contained in:
Jonathan Davies 2017-11-01 11:55:48 +00:00
parent 38001e5be7
commit 42e22437ed
2 changed files with 9 additions and 4 deletions

View File

@ -2,5 +2,5 @@
- name: Restart yum-cron
service:
name=yum-cron
state=restarted
name: yum-cron
state: restarted

View File

@ -42,7 +42,9 @@
when: ansible_os_family == 'RedHat'
- name: Yum | Install yum-cron (CentOS)
yum: name=yum-cron state=present
yum:
name: yum-cron
state: present
when: ansible_os_family == 'RedHat'
- name: Replace | Enable update applying for yum-cron (CentOS)
@ -55,5 +57,8 @@
- Restart yum-cron
- name: Service | Enable yum-cron (CentOS)
service: name=yum-cron state=started enabled=yes
service:
name: yum-cron
state: started
enabled: yes
when: ansible_os_family == 'RedHat'