summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/sanoid/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-04 00:51:06 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-04 00:51:06 +0200
commit1f3ad3812836ed0f8f4f290346014821e6601c4d (patch)
tree0a973d531da3e61ae33e4ee79542f0ed69dabeb3 /roles/storage/zfs/sanoid/tasks/main.yml
parentmove cryptdisk role to new storage subdir (diff)
move zfs roles to new storage subdir
Diffstat (limited to 'roles/storage/zfs/sanoid/tasks/main.yml')
-rw-r--r--roles/storage/zfs/sanoid/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/storage/zfs/sanoid/tasks/main.yml b/roles/storage/zfs/sanoid/tasks/main.yml
new file mode 100644
index 00000000..e35190e9
--- /dev/null
+++ b/roles/storage/zfs/sanoid/tasks/main.yml
@@ -0,0 +1,15 @@
+---
+- name: install sanoid
+ apt:
+ name: sanoid
+ state: present
+
+- name: create sanoid config directory
+ file:
+ path: /etc/sanoid
+ state: directory
+
+- name: genarate sanoid config
+ template:
+ src: sanoid.conf.j2
+ dest: /etc/sanoid/sanoid.conf