add: unattended upgrades

This commit is contained in:
2024-12-23 10:40:10 +00:00
parent fca50fb390
commit 70a4e485dd
2 changed files with 10 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
- htop - htop
- ncdu - ncdu
- gpg - gpg
- unattended-upgrades
- name: Ensure Opt dir exists and accessible - name: Ensure Opt dir exists and accessible
file: file:
@@ -72,3 +73,10 @@
with_items: with_items:
- daemon.conf - daemon.conf
- syslog.conf - syslog.conf
- name: Template Unattended Upgrade conf
template:
src: "{{ item }}"
dest: "/etc/apt/apt.conf.d/"
with_items:
- 20auto-upgrades.conf

View File

@@ -0,0 +1,2 @@
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";