xoxys.yum/handlers/main.yml
Robert Kaussow 1b2e4ffdea
All checks were successful
continuous-integration/drone/push Build is passing
refactor: use generic ansible modules service and package
2021-06-05 15:30:47 +02:00

20 lines
388 B
YAML

---
- block:
- name: Upgrade all packages
package:
name: "*"
state: latest
async: 1000
listen: __yum_upgrade
when: yum_upgrade_enabled | bool
tags:
- skip_ansible_later
- name: Restart yum-cron
service:
name: yum-cron
state: restarted
listen: __yum_cron_restart
become: True
become_user: root