aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-12-19 14:07:43 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-12-19 14:07:43 +0200
commit1c90ac78adc7f7b6b45be9d47f70ee3591c45454 (patch)
tree28ea9167232c7024f12ed81b4ca5970837de99f7 /tasks
parent0fcfd8f3636695e9973504792e9102e01571a6a7 (diff)
Add immich vm, changes
Diffstat (limited to 'tasks')
-rw-r--r--tasks/general.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tasks/general.yml b/tasks/general.yml
index 87e5a54..b8d3f45 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -10,6 +10,7 @@
- bash
- python
- py311-pip
+ - vm-bhyve
- name: Set up periodic.conf
template:
@@ -126,3 +127,18 @@
owner: root
group: wheel
mode: "0755"
+
+- name: Check if zroot/vm exists
+ shell: zfs list zroot/vm
+ register: zroot_vm_check
+ failed_when: false
+ changed_when: false
+
+- name: Add vm dataset for bhyve and init
+ when: zroot_vm_check.rc != 0
+ block:
+ - name: Create vm dataset
+ shell: zfs create zroot/vm
+
+ - name: Run vm init
+ shell: vm init