roles/yum: Use YAML styled options.
This commit is contained in:
parent
38001e5be7
commit
42e22437ed
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
- name: Restart yum-cron
|
- name: Restart yum-cron
|
||||||
service:
|
service:
|
||||||
name=yum-cron
|
name: yum-cron
|
||||||
state=restarted
|
state: restarted
|
||||||
|
@ -42,7 +42,9 @@
|
|||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- name: Yum | Install yum-cron (CentOS)
|
- name: Yum | Install yum-cron (CentOS)
|
||||||
yum: name=yum-cron state=present
|
yum:
|
||||||
|
name: yum-cron
|
||||||
|
state: present
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
- name: Replace | Enable update applying for yum-cron (CentOS)
|
- name: Replace | Enable update applying for yum-cron (CentOS)
|
||||||
@ -55,5 +57,8 @@
|
|||||||
- Restart yum-cron
|
- Restart yum-cron
|
||||||
|
|
||||||
- name: Service | Enable yum-cron (CentOS)
|
- 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'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user