]> git.phdru.name Git - ansible.git/blob - playbooks/roles/debian/init-system/tasks/main.yml
Feat(debian/phd): Merge `setup-home` back into `main`
[ansible.git] / playbooks / roles / debian / init-system / tasks / main.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', 'dselect', 'bash', 'bash-completion',
17            'curl', 'mc', 'python', 'python3', 'rsync', 'vim', 'wget',
18            'arj', 'bzip2', 'lzip', 'lzma', 'lzop', 'p7zip',
19            'unzip', 'zip', 'xz-utils',
20            'gnupg', 'gnupg2',
21           ]
22     purge: yes
23     state: latest
24     update_cache: yes
25
26 - name: Configure apt key for deb-multimedia
27   become: true
28   apt_key:
29     keyserver: keyserver.ubuntu.com
30     id: 5C808C2B65558117
31   when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')"
32
33 - name: Check locales
34   command: grep -c '^ru_RU.KOI8-R' /etc/locale.gen
35   register: has_locales
36 - debug:
37     msg: "Creating and regenerating locales..."
38   notify: Configure locales
39   when: has_locales.stdout == "0"