Browse Source

Enabled unattended-upgrades

This works on Debian/Ubuntu only.

There are similar packages for other distributions, but they still
need manual configuration. It seemed better to go for the common
denominator. unattended-upgrades is usually installed by default
anyway, so we are just reinforcing best practices.
Joost Baaij 10 years ago
parent
commit
2033c37982
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      roles/common/tasks/main.yml

+ 4
- 0
roles/common/tasks/main.yml View File

@@ -28,6 +28,10 @@
28 28
     - apt-transport-https
29 29
     - python-software-properties
30 30
 
31
+- name: Install unattended upgrades (Debian/Ubuntu only)
32
+  apt: pkg=unattended-upgrades state=installed
33
+  when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
34
+
31 35
 - name: Install ntp
32 36
   apt: pkg=ntp state=installed
33 37
 

Loading…
Cancel
Save