khuedoan-homelab/metal/roles/automatic_upgrade/tasks/main.yml
2022-05-14 21:24:39 +07:00

18 lines
397 B
YAML

- name: Install packages for automatic upgrade
ansible.builtin.dnf:
name:
- dnf-automatic
- dnf-utils
- name: Copy automatic upgrade config file
ansible.builtin.copy:
src: automatic.conf
dest: /etc/dnf/automatic.conf
mode: 0644
- name: Enable automatic upgrade service
ansible.builtin.systemd:
name: dnf-automatic.timer
state: started
enabled: true