+++ /dev/null
-- name: Configure apt
- become: true
- template:
- src: sources.list
- dest: /etc/apt/sources.list
- owner: root
- group: root
- mode: '0640'
-
-- name: Install minimal software packages
- become: true
- apt:
- autoclean: yes
- autoremove: yes
- install_recommends: no
- name: ['apt', 'apt-transport-https', 'aptitude',
- 'bash', 'bash-completion', 'bzip2',
- 'curl', 'deborphan', 'dnsutils', 'dselect', 'ifupdown-extra',
- 'gnupg', 'gnupg2', 'logcheck', 'mc', 'mutt',
- 'procmail', 'rsync', 'unzip', 'vim', 'wget', 'whois', 'zip',
- ]
- state: latest
- update_cache: yes
-
-- name: Purge uninteresting packages
- become: true
- apt:
- autoclean: yes
- autoremove: yes
- cache_valid_time: 3600
- install_recommends: no
- name: ['avahi-autoip', 'bluetooth', 'bluez',
- 'debian-faq', 'doc-debian', 'emacsen-comm',
- 'ntp', 'vim-tiny',
- ]
- purge: yes
- state: absent
- update_cache: no
-
-- name: Configure apt key for deb-multimedia
- become: true
- apt_key:
- keyserver: keyserver.ubuntu.com
- id: 5C808C2B65558117
- when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')"