From d77e686d06916156700c5f298b5edb4ba3e9642b Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 24 Dec 2025 13:22:27 +0200 Subject: Improvements --- tasks/general.yml | 10 ++++++++++ tasks/jails_dataset.yml | 3 +++ tasks/jails_single.yml | 3 --- 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'tasks') 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 -- cgit v1.3