diff options
-rw-r--r-- | roles/ubuntu-ws/tasks/main.yaml | 69 | ||||
-rw-r--r-- | roles/ubuntu-ws/templates/prohibited-package.j2 | 3 |
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 |