diff options
-rw-r--r-- | roles/ubuntu-ws/defaults/main.yaml | 3 | ||||
-rw-r--r-- | roles/ubuntu-ws/tasks/main.yaml | 136 |
2 files changed, 77 insertions, 62 deletions
diff --git a/roles/ubuntu-ws/defaults/main.yaml b/roles/ubuntu-ws/defaults/main.yaml new file mode 100644 index 00000000..a4f8e2a2 --- /dev/null +++ b/roles/ubuntu-ws/defaults/main.yaml @@ -0,0 +1,3 @@ +--- +ubuntu_ws_root_fs_size: 20G +ubuntu_ws_home_fs_size: 50G diff --git a/roles/ubuntu-ws/tasks/main.yaml b/roles/ubuntu-ws/tasks/main.yaml index 83d53308..20a66b5b 100644 --- a/roles/ubuntu-ws/tasks/main.yaml +++ b/roles/ubuntu-ws/tasks/main.yaml @@ -1,69 +1,81 @@ --- -- name: prohibited packages - template: - src: prohibited-package.j2 - dest: "/etc/apt/preferences.d/{{ item }}.disabled" - with_items: - - flashplugin-installer +- name: resize root filesystem + lvol: + vg: "{{ inventory_hostname }}" + lv: root + size: "{{ ubuntu_ws_root_fs_size }}" -- 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: create filesystem + filesystem: + fstype: ext4 + dev: "/dev/mapper/{{ inventory_hostname | replace('-', '--') }}-root" + resizefs: yes -- name: install browser - apt: - name: "{{ item }}" - state: present - with_items: - - firefox - - chromium-browser +# - name: prohibited packages +# template: +# src: prohibited-package.j2 +# dest: "/etc/apt/preferences.d/{{ item }}.disabled" +# with_items: +# - flashplugin-installer -- name: install multimedia stuff - apt: - name: "{{ item }}" - state: present - with_items: - - vlc - - mpv - - ffmpeg - - pavumeter - - lame +# - 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 restricted stuff - apt: - name: "{{ item }}" - state: present - with_items: - - ubuntu-restricted-extras - - intel-microcode +# - name: install browser +# apt: +# name: "{{ item }}" +# state: present +# with_items: +# - firefox +# - chromium-browser -- 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 multimedia stuff +# apt: +# name: "{{ item }}" +# state: present +# with_items: +# - vlc +# - mpv +# - ffmpeg +# - pavumeter +# - lame -- name: install extra packages - apt: - name: "{{ item }}" - state: present - with_items: "{{ ubuntu_ws_extra_packages|default([]) }}" +# - 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([]) }}" |