diff options
Diffstat (limited to 'roles/ws')
-rw-r--r-- | roles/ws/base/defaults/main.yml | 4 | ||||
-rw-r--r-- | roles/ws/base/tasks/main.yml | 89 | ||||
-rw-r--r-- | roles/ws/base/templates/prohibited-package.j2 | 3 |
3 files changed, 96 insertions, 0 deletions
diff --git a/roles/ws/base/defaults/main.yml b/roles/ws/base/defaults/main.yml new file mode 100644 index 00000000..eb094e0b --- /dev/null +++ b/roles/ws/base/defaults/main.yml @@ -0,0 +1,4 @@ +--- +ws_base_extra_packages: [] + +# ws_base_home_zfs: {} diff --git a/roles/ws/base/tasks/main.yml b/roles/ws/base/tasks/main.yml new file mode 100644 index 00000000..75a753d8 --- /dev/null +++ b/roles/ws/base/tasks/main.yml @@ -0,0 +1,89 @@ +--- +- name: create zfs dataset for /home + when: ws_base_home_zfs is defined + zfs: + name: "{{ ws_base_home_zfs.pool }}/{{ ws_base_home_zfs.name }}" + state: present + extra_zfs_properties: "{{ ws_base_home_zfs.properties | default({}) | combine({'mountpoint': '/home'}) }}" + +- name: prohibited packages + loop: + - flashplugin-installer + template: + src: prohibited-package.j2 + dest: "/etc/apt/preferences.d/{{ item }}.disabled" + +- name: base packages + apt: + name: + - file + - pwgen + - p7zip-rar + - exfat-fuse + - exfat-utils + - ntfs-3g +# - gnupg-curl + - pass + - evince + - geeqie + - file-roller + - cifs-utils + - exfat-fuse + - exfat-utils + state: present + +- name: install browser + apt: + name: + - firefox + - chromium-browser + state: present + +- name: install multimedia stuff + apt: + name: + - vlc + - mpv + - ffmpeg + - pavumeter + - lame + - gstreamer1.0-pulseaudio + state: present + +- name: install restricted stuff + apt: + name: + - ubuntu-restricted-extras + - chromium-codecs-ffmpeg-extra + - intel-microcode + - amd64-microcode + state: present + +- name: remove superflous packages + apt: + name: + - gnome-keyring + - gnome-software + - gnome-software-common + - software-properties-gtk + - software-properties-common + - "{{ python_basename }}-software-properties" + - flashplugin-installer + - network-manager + - network-manager-gnome + - network-manager-pptp + - network-manager-pptp-gnome + - ufw + state: absent + autoremove: yes + purge: yes + +- name: remove netplan config for network-manager + file: + name: /etc/netplan/01-network-manager-all.yaml + state: absent + +- name: install extra packages + apt: + name: "{{ ws_base_extra_packages }}" + state: present diff --git a/roles/ws/base/templates/prohibited-package.j2 b/roles/ws/base/templates/prohibited-package.j2 new file mode 100644 index 00000000..c5ef1062 --- /dev/null +++ b/roles/ws/base/templates/prohibited-package.j2 @@ -0,0 +1,3 @@ +Package: {{ item }} +Pin: release * +Pin-Priority: -1 |