From f86e57ffc10bc85168eff90269824d1462c22187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 8 Dec 2021 17:14:04 +0000 Subject: roles/vmm: Network infos for autoinstall configurations --- roles/vmm/tasks/autoinstall_configuration.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'roles/vmm/tasks/autoinstall_configuration.yml') diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml index 43c63ff..5d12ee9 100644 --- a/roles/vmm/tasks/autoinstall_configuration.yml +++ b/roles/vmm/tasks/autoinstall_configuration.yml @@ -9,7 +9,7 @@ mode: 0700 state: directory -- name: generate autoinstall files +- name: generate autoinstall configurations template: &generation_steps src: autoinstall.conf.j2 dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-install.conf" @@ -19,12 +19,14 @@ when: item.image == "openbsd" loop: "{{ vmm_vms }}" -- name: generate autoupgrade files +- name: generate autoupgrade configurations template: <<: *generation_steps dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-upgrade.conf" + when: item.image == "openbsd" + loop: "{{ vmm_vms }}" -- name: generate disklabel file +- name: generate disklabel configurations template: <<: *generation_steps src: disklabel.j2 @@ -47,5 +49,6 @@ owner: 0 group: 0 state: hard + force: true when: item.image == "openbsd" loop: "{{ vmm_vms }}" -- cgit v1.2.3