blob: f82f7d3e0513f86ee528bff647910838c5d8e9fd [file] [log] [blame]
Biser Milanov70bd8662023-12-11 16:28:21 +02001- hosts: all
2 tasks:
3 # Unattended-upgrades sometimes do not complete in time and other parts of the setup that use
4 # `apt` fail with a variation of:
5 # E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 7929 (unattended-upgr)
6 - name: Stop and disable the service unattended-upgrades
Biser Milanov52da3972023-12-12 15:20:57 +02007 become: true
8 ignore_errors: true
9 ansible.builtin.command: systemctl disable --now unattended-upgrades