Add auto update for RHEL linux family

This commit is contained in:
Adrien Reslinger 2020-01-11 10:27:05 +01:00
parent 3146f61cc3
commit a53e09ce2f
3 changed files with 92 additions and 0 deletions

View file

@ -53,6 +53,16 @@
#0
#UTC
- name: "Configure auto update for RHEL linux family"
template:
src: etc/yum/yum-cron.conf.j2
dest: /etc/yum/yum-cron.conf
owner: root
group: root
mode: 0644
when:
- ansible_os_family == "RedHat"
- name: upgrade all packages
package:
name: "*"