2 - name: create disks for vm
3 with_dict: "{{ hostvars[hostname].install_cooked.disks.virtio | default({}) | combine(hostvars[hostname].install_cooked.disks.scsi | default({})) }}"
5 vg: "{{ item.value.vg }}"
6 lv: "{{ item.value.lv }}"
7 size: "{{ item.value.size }}"
11 - name: create a temporary workdir
19 ssh_users_root: "{{ hostvars[hostname].ssh_users_root }}"
20 preseed_tmpdir: "{{ tmpdir.path }}"
21 preseed_force_net_ifnames_policy: path
22 install_interface: enp1s1
24 - name: Make preseed workdir readable by qemu
26 path: "{{ tmpdir.path }}"
35 vm_define_installer: yes
36 preseed_tmpdir: "{{ tmpdir.path }}"
39 msg: "you can check on the status of the installer running this command 'virsh console {{ hostname }}' on host {{ inventory_hostname }}."
41 - name: wait for installer to finish or crash
43 name: "{{ hostname }}"
44 states: shutdown,crashed
46 register: installer_result
47 failed_when: installer_result.failed or installer_result.state == "crashed"
50 - name: cleanup temporary workdir
52 path: "{{ tmpdir.path }}"
58 vm_define_installer: no