From be81c5b1863e2114433a0102c781918b09993b17 Mon Sep 17 00:00:00 2001 From: Andreas Zeidler Date: Wed, 14 Jun 2023 16:17:30 +0200 Subject: [PATCH] Use `extra_zfs_properties` parameter & switch to YAML syntax See https://docs.ansible.com/ansible/2.9/modules/zfs_module.html --- bsdploy/roles/jails_host/tasks/main.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bsdploy/roles/jails_host/tasks/main.yml b/bsdploy/roles/jails_host/tasks/main.yml index 887f355..82a4021 100644 --- a/bsdploy/roles/jails_host/tasks/main.yml +++ b/bsdploy/roles/jails_host/tasks/main.yml @@ -90,16 +90,18 @@ - name: Set data zpool options zfs: - name="{{ ploy_bootstrap_data_pool_name }}" - state=present - atime=off - checksum=fletcher4 + name: "{{ ploy_bootstrap_data_pool_name }}" + state: present + extra_zfs_properties: + atime: off + checksum: fletcher4 - name: Jails ZFS file system zfs: - name="{{ ploy_jails_zfs_root }}" - state=present - mountpoint=/usr/jails + name: "{{ ploy_jails_zfs_root }}" + state: present + extra_zfs_properties: + mountpoint: /usr/jails - name: Initialize ezjail (using http proxy) command: "ezjail-admin install -h {{ ploy_ezjail_install_host }} -r {{ ploy_ezjail_install_release|default(ansible_distribution_release) }} creates=/usr/jails/basejail"