aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/zfs.yml
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-06-23 11:16:59 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-06-23 14:45:50 +0300
commit054b2815758e93c699e9a6bb32853e2a4cdef2ff (patch)
tree5f97e1b91ce90e104ba726ba70ec682846883aec /tasks/zfs.yml
parentb3c6ca37500b52821b2b66147b22190414c09993 (diff)
Add email, network, zfs tasks
Diffstat (limited to 'tasks/zfs.yml')
-rw-r--r--tasks/zfs.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tasks/zfs.yml b/tasks/zfs.yml
new file mode 100644
index 0000000..947ebb6
--- /dev/null
+++ b/tasks/zfs.yml
@@ -0,0 +1,18 @@
+- name: Ensure /usr/local/etc/rc.d/ exists
+ file:
+ path: /usr/local/etc/rc.d/
+ state: directory
+ owner: root
+ group: wheel
+ mode: "0755"
+
+- name: Add zpool_gpt_labels rc.d service
+ template:
+ src: usr_local_etc_rc.d_zpool_gpt_labels.j2
+ dest: /usr/local/etc/rc.d/zpool_gpt_labels
+ owner: root
+ group: wheel
+ mode: "0755"
+
+- name: Enable and start zpool_gpt_labels service
+ shell: service zpool_gpt_labels enable && service zpool_gpt_labels start