From: Oleg Broytman Date: Tue, 6 Aug 2019 20:26:17 +0000 (+0300) Subject: Feat(init-system): Install less software packages X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ca002b5f109cf8ad5673eccf15bc6365b21114fb;p=ansible.git Feat(init-system): Install less software packages Install more software packages in a separate role `packages`. --- diff --git a/playbooks/debian/roles/init-system/tasks/apt.yml b/playbooks/debian/roles/init-system/tasks/apt.yml index a8a8c8a..b0b1dbb 100644 --- a/playbooks/debian/roles/init-system/tasks/apt.yml +++ b/playbooks/debian/roles/init-system/tasks/apt.yml @@ -23,13 +23,11 @@ autoclean: yes autoremove: yes install_recommends: no - name: ['adjtimex', 'apt', 'apt-transport-https', 'aptitude', 'arj', - 'bash', 'bash-completion', 'bsd-mailx', 'bzip2', - 'curl', 'deborphan', 'dnsutils', 'dselect', 'elinks', - 'fetchmail', 'gnupg', 'gnupg2', 'links2', - 'logcheck', 'lzip', 'lzma', 'lzop', 'mc', 'mutt', - 'p7zip', 'procmail', - 'rsync', 'unzip', 'vim', 'wget', 'xz-utils', 'zip', + name: ['apt', 'apt-transport-https', 'aptitude', + 'bash', 'bash-completion', 'bzip2', + 'curl', 'deborphan', 'dnsutils', 'dselect', + 'gnupg', 'gnupg2', 'logcheck', 'mc', 'mutt', + 'procmail', 'rsync', 'unzip', 'vim', 'wget', 'zip', ] purge: yes state: latest diff --git a/playbooks/debian/roles/packages/README.txt b/playbooks/debian/roles/packages/README.txt new file mode 100644 index 0000000..ef692c4 --- /dev/null +++ b/playbooks/debian/roles/packages/README.txt @@ -0,0 +1 @@ +Install Debian packages. diff --git a/playbooks/debian/roles/packages/tasks/main.yml b/playbooks/debian/roles/packages/tasks/main.yml new file mode 100644 index 0000000..f4fd360 --- /dev/null +++ b/playbooks/debian/roles/packages/tasks/main.yml @@ -0,0 +1,12 @@ +- name: Install software packages + become: true + apt: + autoclean: yes + autoremove: yes + install_recommends: no + name: ['adjtimex', 'arj', 'bsd-mailx', 'elinks', 'fetchmail', 'links2', + 'lzip', 'lzma', 'lzop', 'p7zip', 'xz-utils', + ] + purge: yes + state: latest + update_cache: yes