ansible.role.dnf-automatic/tasks/main.yml

20 lines
397 B
YAML
Raw Permalink Normal View History

2021-08-04 17:15:14 +08:00
- 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