summaryrefslogtreecommitdiff
path: root/roles/ubuntu-ws
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-02-24 07:39:05 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-02-24 07:39:05 +0100
commit273b31377e685ec1eff90c6ff2a9dccf162f7f7f (patch)
treed4bf023bcf1cdd7a7b727812cc7f4a55c837b6f1 /roles/ubuntu-ws
parentadd nano to default package list (diff)
added ubuntu workstation role
Diffstat (limited to 'roles/ubuntu-ws')
-rw-r--r--roles/ubuntu-ws/tasks/main.yaml69
-rw-r--r--roles/ubuntu-ws/templates/prohibited-package.j23
2 files changed, 72 insertions, 0 deletions
diff --git a/roles/ubuntu-ws/tasks/main.yaml b/roles/ubuntu-ws/tasks/main.yaml
new file mode 100644
index 00000000..83d53308
--- /dev/null
+++ b/roles/ubuntu-ws/tasks/main.yaml
@@ -0,0 +1,69 @@
+---
+- name: prohibited packages
+ template:
+ src: prohibited-package.j2
+ dest: "/etc/apt/preferences.d/{{ item }}.disabled"
+ with_items:
+ - flashplugin-installer
+
+- name: base packages
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - xubuntu-desktop
+ - file
+ - pwgen
+ - p7zip-rar
+ - exfat-fuse
+ - exfat-utils
+ - ntfs-3g
+ - gnupg-curl
+ - pass
+
+- name: install browser
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - firefox
+ - chromium-browser
+
+- name: install multimedia stuff
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - vlc
+ - mpv
+ - ffmpeg
+ - pavumeter
+ - lame
+
+- name: install restricted stuff
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - ubuntu-restricted-extras
+ - intel-microcode
+
+- name: remove superflous packages
+ apt:
+ name: "{{ item }}"
+ state: absent
+ autoremove: yes
+ purge: yes
+ with_items:
+ - gnome-software
+ - gnome-software-common
+ - software-properties-gtk
+ - software-properties-common
+ - python3-software-properties
+ - flashplugin-installer
+
+- name: install extra packages
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items: "{{ ubuntu_ws_extra_packages|default([]) }}"
diff --git a/roles/ubuntu-ws/templates/prohibited-package.j2 b/roles/ubuntu-ws/templates/prohibited-package.j2
new file mode 100644
index 00000000..c5ef1062
--- /dev/null
+++ b/roles/ubuntu-ws/templates/prohibited-package.j2
@@ -0,0 +1,3 @@
+Package: {{ item }}
+Pin: release *
+Pin-Priority: -1