- name: prepare directories for installer images
- with_subelements:
- - "{{ distros }}"
- - arch
+ loop: "{{ distros | subelements('arch') }}"
+ loop_control:
+ label: "{{ item.0.distro }}/{{ item.0.codename }} {{ item.1 }}"
file:
name: "{{ debian_installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}"
state: directory
- name: download installer kernel images
- with_subelements:
- - "{{ distros }}"
- - arch
+ loop: "{{ distros | subelements('arch') }}"
+ loop_control:
+ label: "{{ item.0.distro }}/{{ item.0.codename }} {{ item.1 }}"
get_url:
url: "{{ debian_installer_url[item.0.distro] }}/dists/{{ item.0.codename }}/main/installer-{{ item.1 }}/current/images/netboot/{{ item.0.distro }}-installer/{{ item.1 }}/linux"
dest: "{{ debian_installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}/linux"
force: "{{ debian_installer_force_download }}"
- name: download installer initrd.gz
- with_subelements:
- - "{{ distros }}"
- - arch
+ loop: "{{ distros | subelements('arch') }}"
+ loop_control:
+ label: "{{ item.0.distro }}/{{ item.0.codename }} {{ item.1 }}"
get_url:
url: "{{ debian_installer_url[item.0.distro] }}/dists/{{ item.0.codename }}/main/installer-{{ item.1 }}/current/images/netboot/{{ item.0.distro }}-installer/{{ item.1 }}/initrd.gz"
dest: "{{ debian_installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}/initrd.gz"
---
- name: create disks for vm
with_dict: "{{ hostvars[hostname].install_cooked.disks.virtio | default({}) | combine(hostvars[hostname].install_cooked.disks.scsi | default({})) }}"
+ loop_control:
+ label: "{{ item.value.vg }} / {{ item.value.lv }} ({{ item.value.size }})"
lvol:
vg: "{{ item.value.vg }}"
lv: "{{ item.value.lv }}"
- name: install systemd network link units
with_items: "{{ network.systemd_link.interfaces }}"
loop_control:
+ label: "{{ item.name }}"
index_var: interface_index
template:
src: systemd.link.j2