-- name: Install minimal software packages
- become: true
- apt:
- autoclean: yes
- autoremove: yes
- install_recommends: no
- name: ['apt', 'aptitude', 'dselect', 'bash', 'bash-completion',
- 'curl', 'mc', 'python', 'python3', 'rsync', 'vim', 'wget',
- 'arj', 'bzip2', 'lzip', 'lzma', 'lzop', 'p7zip',
- 'unzip', 'zip', 'xz-utils',
- 'gnupg', 'gnupg2',
- ]
- purge: yes
- state: latest
- update_cache: yes
-
-- 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')"
-
-- name: Check locales
- shell: "grep -c '^ru_RU.KOI8-R' /etc/locale.gen || :"
- register: has_locales
-- debug:
- msg: "Creating and regenerating locales..."
- notify: Configure locales
- when: has_locales.stdout == "0"