Active les MAJ CentOS8
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-01-09 10:44:20 +01:00
parent d369949981
commit 71dfa27519
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 104 additions and 3 deletions

View file

@ -55,7 +55,7 @@
# 0
# UTC
- name: "Configure auto update for RHEL linux family"
- name: "Configure auto update for RHEL 7 linux family"
template:
src: etc/yum/yum-cron.conf.j2
dest: /etc/yum/yum-cron.conf
@ -66,6 +66,26 @@
- ansible_os_family == "RedHat"
- ansible_distribution_major_version == '7'
- name: "Configure auto update for RHEL 8 linux family"
template:
src: etc/dnf/automatic.conf.j2
dest: /etc/dnf/automatic.conf
owner: root
group: root
mode: 0644
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version == '8'
- name: enable a timer for dnf-automatic for RHEL 8 linux family
systemd:
name: dnf-automatic.timer
state: started
enabled: yes
when:
- ansible_os_family == "RedHat"
- ansible_distribution_major_version == '8'
# - name: upgrade all packages
# package:
# name: "*"