initial commit

This commit is contained in:
xpk
2021-08-04 17:15:14 +08:00
commit c22a0b4fe3
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
Ansible role to install and enable dnf-automatic on EL8
+19
View File
@@ -0,0 +1,19 @@
- name: Install dnf-automatic package
dnf:
name: dnf-automatic
state: present
- name: Update config file
lineinfile:
backup: true
path: /etc/dnf/automatic.conf
line: "apply_updates = yes"
regexp: "^apply_updates.*"
state: present
- name: Enable service
service:
name: dnf-automatic.timer
enabled: yes
state: started