khuedoan-homelab/metal/roles/automatic_upgrade/tasks/main.yml

18 lines
397 B
YAML
Raw Normal View History

- name: Install packages for automatic upgrade
2022-05-14 21:24:39 +07:00
ansible.builtin.dnf:
name:
- dnf-automatic
- dnf-utils
- name: Copy automatic upgrade config file
2022-05-14 21:24:39 +07:00
ansible.builtin.copy:
src: automatic.conf
dest: /etc/dnf/automatic.conf
mode: 0644
- name: Enable automatic upgrade service
2022-05-14 21:24:39 +07:00
ansible.builtin.systemd:
name: dnf-automatic.timer
state: started
enabled: true