Disable more units related to unattended upgrades
Change-Id: I739fb5b1ec3b08d08aafbc3b98698a7dbc316af0
diff --git a/playbooks/workarounds/01-disable-unattended-upgrades.yaml b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
index 55965bf..2b905e9 100644
--- a/playbooks/workarounds/01-disable-unattended-upgrades.yaml
+++ b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
@@ -14,10 +14,16 @@
- APT::Periodic::Update-Package-Lists "0";
- APT::Periodic::Unattended-Upgrade "0";
- - name: Stop and disable the service unattended-upgrades
+ - name: Stop and disable units related to automatic, unattended upgrades
become: true
ignore_errors: true
- ansible.builtin.command: systemctl disable --now unattended-upgrades
+ ansible.builtin.command: systemctl disable --now {{ item }}
+ loop:
+ - unattended-upgrades
+ - apt-daily.service
+ - apt-daily.timer
+ - apt-daily-upgrade.timer
+ - apt-daily-upgrade.service
- name: Wait for the lock to get freed
become: true