Move the nat_dhcp jail to an unencrypted dataset so it can be available at boot.

This commit is contained in:
Tom Alexander 2022-12-02 22:13:32 -05:00
parent 74d31edae1
commit dac4734a80
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 9 additions and 1 deletions

View File

@ -22,6 +22,11 @@ jail_zfs_dataset_mountpoint: /jail/main
jail_canmount: "on" jail_canmount: "on"
jail_bemount: "on" jail_bemount: "on"
jail_list: jail_list:
- name: nat_dhcp
dataset: zmass/unencrypted/jails
enabled: true
conf:
src: nat_dhcp
- name: cloak - name: cloak
conf: conf:
src: cloak src: cloak

View File

@ -1,2 +1,2 @@
[headless] [headless]
homeserver ansible_user=talexander ansible_host=192.168.1.123 homeserver ansible_user=talexander ansible_host=172.16.16.2

View File

@ -15,6 +15,7 @@
state: present state: present
- include_tasks: "tasks/{{graphics_driver}}.yaml" - include_tasks: "tasks/{{graphics_driver}}.yaml"
when: install_graphics # TODO: Maybe this should be when graphics_driver is defined to support headless casting
- import_tasks: tasks/freebsd.yaml - import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"' when: 'os_flavor == "freebsd"'

View File

@ -2,6 +2,7 @@
name: per_user name: per_user
- name: Create directories - name: Create directories
when: install_graphics
file: file:
name: "{{ account_homedir.stdout }}/{{ item }}" name: "{{ account_homedir.stdout }}/{{ item }}"
state: directory state: directory
@ -12,6 +13,7 @@
- ".config/mpv" - ".config/mpv"
- name: Copy files - name: Copy files
when: install_graphics
copy: copy:
src: "files/{{ item.src }}" src: "files/{{ item.src }}"
dest: "{{ account_homedir.stdout }}/{{ item.dest }}" dest: "{{ account_homedir.stdout }}/{{ item.dest }}"