Active les MAJ CentOS8
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d369949981
commit
71dfa27519
3 changed files with 104 additions and 3 deletions
|
|
@ -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: "*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue