aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-12-24 13:22:27 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-12-24 13:22:34 +0200
commitd77e686d06916156700c5f298b5edb4ba3e9642b (patch)
tree2a1e5569dd4fa3785b75dad92ff38f29414166a5 /tasks
parenta977ef97cb1d88b617286fc07ea37a19c8b01e42 (diff)
Improvements
Diffstat (limited to 'tasks')
-rw-r--r--tasks/general.yml10
-rw-r--r--tasks/jails_dataset.yml3
-rw-r--r--tasks/jails_single.yml3
3 files changed, 13 insertions, 3 deletions
diff --git a/tasks/general.yml b/tasks/general.yml
index b8d3f45..7643420 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -11,6 +11,8 @@
- python
- py311-pip
- vm-bhyve
+ - fastfetch
+ - drm-kmod
- name: Set up periodic.conf
template:
@@ -142,3 +144,11 @@
- name: Run vm init
shell: vm init
+
+- name: Install .bashrc
+ file:
+ src: templates/root_bashr
+ dest: /root/.bashrc
+ owner: root
+ group: wheel
+ mode: "0644"
diff --git a/tasks/jails_dataset.yml b/tasks/jails_dataset.yml
index c97e14a..3925a8c 100644
--- a/tasks/jails_dataset.yml
+++ b/tasks/jails_dataset.yml
@@ -45,6 +45,9 @@
cat /etc/resolv.conf > /usr/local/jails/templates/{{ dataset.userland }}/etc/resolv.conf
chmod 644 /usr/local/jails/templates/{{ dataset.userland }}/etc/resolv.conf
+ - name: Disable resolvconf in the template
+ shell: echo 'resolvconf=NO' >> /usr/local/jails/templates/{{ dataset.userland }}/etc/resolvconf.conf
+
- name: Update userland to latest patch level
shell: freebsd-update -b /usr/local/jails/templates/{{ dataset.userland }}/ fetch install
diff --git a/tasks/jails_single.yml b/tasks/jails_single.yml
index 274688b..3225d50 100644
--- a/tasks/jails_single.yml
+++ b/tasks/jails_single.yml
@@ -8,9 +8,6 @@
shell: zfs clone zroot/jails/templates/{{ jail.userland }}@base "zroot/jails/containers/{{ jail.name }}"
when: check_jail_directory.rc != 0
-- name: Make resolv.conf immutable
- shell: chflags schg /usr/local/jails/containers/{{ jail.name }}/etc/resolv.conf
-
- name: Configure jail.conf.d/{{ jail.name }}.conf
template:
src: etc_jail.conf.d_[jailname].conf.j2