Added auto upgrades to base.
authorLuke Hoersten <luke@hoersten.org>
Sat, 01 Aug 2020 11:10:30 -0500
changeset 126 1fe8b35714f6
parent 125 5a298f7b44f5
child 127 e04ea647b185
Added auto upgrades to base.
rpi-base/files/20auto-upgrades
rpi-base/tasks/main.yml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rpi-base/files/20auto-upgrades	Sat Aug 01 11:10:30 2020 -0500
@@ -0,0 +1,4 @@
+APT::Periodic::Update-Package-Lists "1";
+APT::Periodic::Download-Upgradeable-Packages "1";
+APT::Periodic::AutocleanInterval "7";
+APT::Periodic::Unattended-Upgrade "1";
--- a/rpi-base/tasks/main.yml	Mon Jul 27 19:44:18 2020 -0500
+++ b/rpi-base/tasks/main.yml	Sat Aug 01 11:10:30 2020 -0500
@@ -33,6 +33,10 @@
   become: yes
   apt: name="{{rpi_base_apt_packages}}" state="latest"
 
+- name: configure auto upgrades
+  become: yes
+  copy: src="20auto-upgrades" dest="/etc/apt/apt.conf.d/20auto-upgrades"
+
 - name: configure log2ram disk size
   become: yes
   lineinfile: