aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/general.yml
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-05-12 15:06:28 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-05-12 22:27:15 +0300
commit4715a28fdcd87440400d17154bfa361d99db29cc (patch)
tree52b825ca69ed3fc535f8f46de0ee1d2b1a6e2ade /tasks/general.yml
parented338ea29f1c0f2ad82d3a45b23c0544371b5575 (diff)
Add local vm for testing, adjust configs
Diffstat (limited to 'tasks/general.yml')
-rw-r--r--tasks/general.yml19
1 files changed, 16 insertions, 3 deletions
diff --git a/tasks/general.yml b/tasks/general.yml
index 76315cd..0ec9219 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -10,9 +10,16 @@
- bash
- python
- py311-pip
- - vm-bhyve
- fastfetch
+
+- name: Install amd64-specific packages
+ package:
+ name: "{{ item }}"
+ state: present
+ loop:
+ - vm-bhyve
- drm-kmod
+ when: not is_test_vm
- name: Set up periodic.conf
template:
@@ -39,10 +46,11 @@
group: wheel
mode: "0644"
register: fstab
+ when: not is_test_vm
- name: Run mount -a
shell: mount -a
- when: fstab.changed
+ when: not is_test_vm and fstab.changed
- name: Start auditd
service:
@@ -105,6 +113,7 @@
owner: root
group: wheel
mode: "0600"
+ when: not is_test_vm
- name: Copy backup SSH public key
copy:
@@ -113,6 +122,7 @@
owner: root
group: wheel
mode: "0644"
+ when: not is_test_vm
- name: Copy SSH config
template:
@@ -121,6 +131,7 @@
owner: root
group: wheel
mode: "0644"
+ when: not is_test_vm
- name: Copy backup script
template:
@@ -129,15 +140,17 @@
owner: root
group: wheel
mode: "0755"
+ when: not is_test_vm
- name: Check if zroot/vm exists
shell: zfs list zroot/vm
register: zroot_vm_check
failed_when: false
changed_when: false
+ when: not is_test_vm
- name: Add vm dataset for bhyve and init
- when: zroot_vm_check.rc != 0
+ when: not is_test_vm and zroot_vm_check.rc != 0
block:
- name: Create vm dataset
shell: zfs create zroot/vm