Disable apt periodic updates
Change-Id: I710565b333230465d28c141ed52cbacfa3198168
diff --git a/playbooks/workarounds/01-disable-unattended-upgrades.yaml b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
index 9e20e90..55965bf 100644
--- a/playbooks/workarounds/01-disable-unattended-upgrades.yaml
+++ b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
@@ -3,6 +3,17 @@
# Unattended-upgrades sometimes do not complete in time and other parts of the setup that use
# `apt` fail with a variation of:
# E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 7929 (unattended-upgr)
+ - name: Disable apt periodic updates
+ become: yes
+ ansible.builtin.lineinfile:
+ path: /etc/apt/apt.conf.d/888disable-periodic
+ line: "{{ item }}"
+ state: present
+ create: yes
+ loop:
+ - APT::Periodic::Update-Package-Lists "0";
+ - APT::Periodic::Unattended-Upgrade "0";
+
- name: Stop and disable the service unattended-upgrades
become: true
ignore_errors: true