From 1e4520fbdb6a72cfaf39746e3f89544771720394 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 11 Nov 2020 03:09:35 +0100 Subject: add zfs support to new workstation/base role --- roles/ws/base/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'roles/ws/base/tasks') diff --git a/roles/ws/base/tasks/main.yml b/roles/ws/base/tasks/main.yml index 9e3b55b8..75a753d8 100644 --- a/roles/ws/base/tasks/main.yml +++ b/roles/ws/base/tasks/main.yml @@ -1,4 +1,11 @@ --- +- 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 @@ -78,5 +85,5 @@ - name: install extra packages apt: - name: "{{ ubuntu_ws_extra_packages }}" + name: "{{ ws_base_extra_packages }}" state: present -- cgit v1.2.3