blob: d1723843be2d84aac78c899074ef6a9a66f21415 (
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
35
36
37
38
39
40
41
42
43
44
|
- name: Install various APT tools
apt: pkg={{ item }}
with_items:
- apt
- apt-listbugs
- apt-listchanges
- apt-show-versions
- debian-archive-keyring
- debian-goodies
- unattended-upgrades
- debfoster
- deborphan
- debsecan
- debsums
- update-notifier-common
- name: Configure APT (1)
template: src=etc/apt/{{ item }}.j2
dest=/etc/apt/{{ item }}
owner=root group=root
mode=0644
with_items:
- sources.list
- preferences
notify:
- apt-get update
- name: Configure APT (2)
copy: src=etc/apt/{{ item }}
dest=/etc/apt/{{ item }}
owner=root group=root
mode=0644
with_items:
- listchanges.conf
- apt.conf.d/10periodic
- apt.conf.d/50unattended-upgrades
- name: Start cron
service: name=cron state=started
tags:
- cron
# We should run 'apt-get update' before proceeding to any other task.
- meta: flush_handlers
|