diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-05-12 15:06:28 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-05-12 22:27:15 +0300 |
| commit | 4715a28fdcd87440400d17154bfa361d99db29cc (patch) | |
| tree | 52b825ca69ed3fc535f8f46de0ee1d2b1a6e2ade /tasks/jails_dataset.yml | |
| parent | ed338ea29f1c0f2ad82d3a45b23c0544371b5575 (diff) | |
Add local vm for testing, adjust configs
Diffstat (limited to 'tasks/jails_dataset.yml')
| -rw-r--r-- | tasks/jails_dataset.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tasks/jails_dataset.yml b/tasks/jails_dataset.yml index 3925a8c..9e2748c 100644 --- a/tasks/jails_dataset.yml +++ b/tasks/jails_dataset.yml @@ -25,7 +25,7 @@ block: - name: Download userland get_url: - url: https://download.freebsd.org/ftp/releases/amd64/amd64/{{ dataset.userland }}/base.txz + url: https://download.freebsd.org/ftp/releases/{{ arch }}/{{ dataset.userland }}/base.txz dest: /usr/local/jails/media/{{ dataset.userland }}-base.txz owner: root group: wheel @@ -41,9 +41,12 @@ dest: /usr/local/jails/templates/{{ dataset.userland }}/etc/localtime - name: Copy resolv.conf to jail userland - shell: | - cat /etc/resolv.conf > /usr/local/jails/templates/{{ dataset.userland }}/etc/resolv.conf - chmod 644 /usr/local/jails/templates/{{ dataset.userland }}/etc/resolv.conf + template: + src: etc_resolv.conf.j2 + dest: /usr/local/jails/templates/{{ dataset.userland }}/etc/resolv.conf + owner: root + group: wheel + mode: "0644" - name: Disable resolvconf in the template shell: echo 'resolvconf=NO' >> /usr/local/jails/templates/{{ dataset.userland }}/etc/resolvconf.conf |
