summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/apt.yml
blob: 9b553b0514dd0a355c6b21580ec826da67ae35a5 (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
- 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