diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-09-13 22:46:27 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-09-13 22:46:27 +0200 |
commit | 1c310987cb3783d0c8b3031c03e0598048463a5a (patch) | |
tree | ee5b716ec90a6753605b76e470d25b716bc7aced /roles/zfs/tasks | |
parent | vm: disk on zfs volumes (diff) |
added sk-2019
Diffstat (limited to 'roles/zfs/tasks')
-rw-r--r-- | roles/zfs/tasks/main.yml | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/roles/zfs/tasks/main.yml b/roles/zfs/tasks/main.yml deleted file mode 100644 index cddfbb09..00000000 --- a/roles/zfs/tasks/main.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -## TODO: @debian: make sure contrib repo is added - -- name: install zfs packages - apt: - name: zfs-dkms - state: present - -- name: check if module is available for the currently running kernel - command: modprobe --dry-run zfs - check_mode: no - register: zfs_module_available - failed_when: false - changed_when: false - -- name: rebuild zfs module - when: zfs_module_available.rc != 0 - command: dpkg-reconfigure zfs-dkms - -- name: load zfs kernel module - modprobe: - name: zfs - state: present - -- name: install zfs file system utilities - apt: - name: zfsutils-linux - state: present - -- name: create zpool - command: "zpool create -m {{ zfs_zpool_mountpoint }} {% for prop, value in zfs_zpool_properties.items() %}-o {{ prop }}={{ value }} {% endfor %}{{ zfs_zpool_name }} {{ zfs_zpool_create_vdevs }}" - args: - creates: "{{ zfs_zpool_mountpoint }}" |