]> git.phdru.name Git - ansible.git/commitdiff
Feat(init-system): Install less software packages
authorOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2019 20:26:17 +0000 (23:26 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2019 20:26:17 +0000 (23:26 +0300)
Install more software packages in a separate role `packages`.

playbooks/debian/roles/init-system/tasks/apt.yml
playbooks/debian/roles/packages/README.txt [new file with mode: 0644]
playbooks/debian/roles/packages/tasks/main.yml [new file with mode: 0644]

index a8a8c8a84736ba7a0d68b8e361e9127ece21a299..b0b1dbb9e3884ab669b6de9e1da13b7846501ad5 100644 (file)
     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 (file)
index 0000000..ef692c4
--- /dev/null
@@ -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 (file)
index 0000000..f4fd360
--- /dev/null
@@ -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