]> git.phdru.name Git - ansible.git/blob - playbooks/roles/init-system/tasks/apt.yaml
dd2a32b0f3a71d79676e05244043453305031be7
[ansible.git] / playbooks / roles / init-system / tasks / apt.yaml
1 - name: Configure apt
2   become: true
3   template:
4     src: sources.list
5     dest: /etc/apt/sources.list
6     owner: root
7     group: root
8     mode: '0640'
9
10 - name: Install minimal software packages
11   become: true
12   apt:
13     autoclean: yes
14     autoremove: yes
15     install_recommends: no
16     name: ['apt', 'aptitude',
17            'bash', 'bash-completion', 'bzip2',
18            'curl', 'deborphan', 'dnsutils', 'dselect', 'ifupdown-extra',
19            'gnupg', 'gnupg2', 'logcheck', 'mc', 'mutt',
20            'procmail', 'rsync', 'unzip', 'vim', 'wget', 'whois', 'zip',
21           ]
22     state: latest
23     update_cache: yes
24
25 - name: Purge uninteresting packages
26   become: true
27   apt:
28     autoclean: yes
29     autoremove: yes
30     cache_valid_time: 3600
31     install_recommends: no
32     name: ['apt-transport-https', 'avahi-autoip', 'bluetooth', 'bluez',
33            'debian-faq', 'doc-debian', 'emacsen-comm', 'vim-tiny',
34           ]
35     purge: yes
36     state: absent
37     update_cache: no
38
39 - name: Configure apt key for deb-multimedia
40   become: true
41   apt_key:
42     keyserver: keyserver.ubuntu.com
43     id: 5C808C2B65558117
44   when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')"