mirror-env/roles/zfs/tasks/main.yml

23 lines
639 B
YAML
Executable File

- name: install zfs
apt:
name: zfsutils-linux
state: latest
update_cache: true
- name: create zfs mountpoint
file:
path: /mirror/root/.cscmirror
state: directory
owner: root
group: root
mode: 0777
recurse: yes
- name: create and mount zpool
# double check this works (and produces the correct result)
# may be better to use the /dev/disk/by-id/... instead
commmand: zpool create -f -m /mirror/root/.cscmirror cscmirror raidz2 /dev/vdc /dev/vdd /dev/vde /dev/vdf
# may need to mount it (also check that it will automount on boot)
# zfs mount -a
# need check for if zpool already exists