blob: 49121b9c1c1ab6dbdb4d4c0f1b1e6411b373c4e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
- meta: flush_handlers
- name: install unattended-upgrades
apt:
name:
- 'unattended-upgrades'
- name: reload systemd
systemd:
daemon_reload: 'yes'
- name: start and enable timers
systemd:
name: '{{ item }}'
state: 'started'
enabled: 'yes'
loop:
- 'apt-daily.timer'
- 'apt-daily-upgrade.timer'
- name: remove old files
file:
name: '{{ item }}'
state: 'absent'
loop:
- '/etc/apt/apt.conf.d/20auto-upgrades.ucf-dist'
- '/etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist'
- '/etc/apt/sources.list~'
- '/etc/apt/sources.list.distUpgrade'
- '/etc/apt/sources.list.d/security.list.distUpgrade'
- '/etc/apt/trusted.gpg~'
- '/var/lib/cron-apt'
|