Prevent unattended-upgrades from being installed 87/13187/2
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 25 Oct 2018 02:41:20 +0000 (12:41 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 25 Oct 2018 03:47:01 +0000 (13:47 +1000)
Uninstalling unattended-upgrade package is not enough, also mark
the package on hold. This will stop the package being pulled in
on any upgrades.

Change-Id: I8f418c23cb946bdb163805e4412cd33637cc79ae
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
provision/baseline.yaml

index 685b1ec..cbfc28c 100644 (file)
           apt:
             name: unattended-upgrades
             state: absent
+        - name: Prevent unattended upgrades from being installed
+          dpkg_selections:
+            name: unattended-upgrades
+            selection: hold
       when: ansible_distribution == 'Ubuntu'
       become: yes