zfs - add hostname restriction on pool creation

This commit is contained in:
Josh Lay 2019-07-30 21:53:57 -05:00
parent 879756c7da
commit d78ac2e950

View file

@ -75,4 +75,4 @@
# really bad idempotence in here...
- name: create zpool
command: "zpool create -f -O compression=lz4 data {{ zfs_disk }} -o ashift=13 -O secondarycache=all"
when: not pools.changed
when: not pools.changed and ('worker' in inventory_hostname)