add automatic updates

This commit is contained in:
2025-12-29 10:02:48 +01:00
parent 10b42ebf09
commit 26c071b84c
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
[commands]
apply_updates=True
reboot=never

View File

@@ -27,9 +27,24 @@
- curl - curl
- wget - wget
- fastfetch - fastfetch
- dnf5-plugin-automatic
state: present state: present
become: true become: true
- name: Copy DNF Automatic configuration /etc/dnf/
ansible.builtin.copy:
src: files/automatic.conf
dest: "/etc/dnf/"
mode: "0644"
become: true
- name: Enable DNF Automatic Timer
ansible.builtin.systemd:
name: dnf-automatic.timer
enabled: true
state: started
become: true
- name: Ensure flatpak is installed - name: Ensure flatpak is installed
ansible.builtin.dnf: ansible.builtin.dnf:
name: name: