]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/init-system/tasks/apt.yml
Feat(debian/init-system): Split `tasks/main`
[ansible.git] / playbooks / debian / roles / init-system / tasks / apt.yml
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', 'deborphan', 'dselect',
17            'bash', 'bash-completion',
18            'curl', 'mc', 'rsync', 'vim', 'wget',
19            'arj', 'bzip2', 'lzip', 'lzma', 'lzop', 'p7zip',
20            'unzip', 'zip', 'xz-utils',
21            'gnupg', 'gnupg2',
22            'adjtimex', 'logcheck',
23            'bsd-mailx', 'mutt', 'procmail',
24            'python', 'python2.7', 'python3',
25           ]
26     purge: yes
27     state: latest
28     update_cache: yes
29
30 - name: Purge uninteresting packages
31   become: true
32   apt:
33     autoclean: yes
34     autoremove: yes
35     install_recommends: no
36     name: ['avahi-autoip', 'bluetooth', 'bluez',
37            'debian-faq', 'doc-debian',
38            'emacsen-comm', 'vim-tiny',
39           ]
40     purge: yes
41     state: absent
42     update_cache: no
43
44
45 - name: Configure apt key for deb-multimedia
46   become: true
47   apt_key:
48     keyserver: keyserver.ubuntu.com
49     id: 5C808C2B65558117
50   when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')"