aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/autoinstall_configuration.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-08 17:05:03 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-08 17:52:52 +0000
commit93b7a96d2e13c21d069fb7680b7c89dbbb4673a4 (patch)
tree82574c273c9e59874ffb257fa4f15cba39d1d88c /roles/vmm/tasks/autoinstall_configuration.yml
parent3dada080a6f63e06f48396b425539687fbe00a6d (diff)
downloadrules-93b7a96d2e13c21d069fb7680b7c89dbbb4673a4.tar.gz
roles/vmm: Generate disklabels for openbsd autoinstall
Diffstat (limited to 'roles/vmm/tasks/autoinstall_configuration.yml')
-rw-r--r--roles/vmm/tasks/autoinstall_configuration.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml
index cd52a84..ee1b98b 100644
--- a/roles/vmm/tasks/autoinstall_configuration.yml
+++ b/roles/vmm/tasks/autoinstall_configuration.yml
@@ -23,6 +23,12 @@
template:
<<: *generation_steps
dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-upgrade.conf"
+
+- name: generate disklabel file
+ template:
+ <<: *generation_steps
+ src: disklabel.j2
+ dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-disklabel.conf"
when: item.image == "openbsd"
loop: "{{ vmm_vms }}"
remember that computers suck.