X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finit-system%2Ftasks%2Fmain.yml;h=83104c73bd0a06ca8c7d748ff712484b579fa1be;hb=49d5ce7d9ca6227373e2d9ef860e7641b7b926ea;hp=0e1db285b0a1791b3c37918e4d0b780b50d608cc;hpb=009018ea1ff7e3eab45c523559c0271850da228b;p=ansible.git diff --git a/playbooks/debian/roles/init-system/tasks/main.yml b/playbooks/debian/roles/init-system/tasks/main.yml index 0e1db28..83104c7 100644 --- a/playbooks/debian/roles/init-system/tasks/main.yml +++ b/playbooks/debian/roles/init-system/tasks/main.yml @@ -1,39 +1,5 @@ -- name: Configure apt - become: true - template: - src: sources.list - dest: /etc/apt/sources.list - owner: root - group: root - mode: '0640' +- name: apt + import_tasks: apt.yml -- 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 - command: 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" +- name: locales + import_tasks: locales.yml