diff --git a/ansible/roles/yum/handlers/main.yml b/ansible/roles/yum/handlers/main.yml index 2104dd2a6..e55f9eaff 100644 --- a/ansible/roles/yum/handlers/main.yml +++ b/ansible/roles/yum/handlers/main.yml @@ -2,5 +2,5 @@ - name: Restart yum-cron service: - name=yum-cron - state=restarted + name: yum-cron + state: restarted diff --git a/ansible/roles/yum/tasks/redhat.yml b/ansible/roles/yum/tasks/redhat.yml index cf82a7967..2b2b1c529 100644 --- a/ansible/roles/yum/tasks/redhat.yml +++ b/ansible/roles/yum/tasks/redhat.yml @@ -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'