summaryrefslogtreecommitdiff
path: root/roles/installer/debian/base/tasks/main.yml
blob: 92fac536d0dd15ebe323554160e9e93e3b2e2bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- name: prepare directories for installer images
  loop: "{{ distros | subelements('arch') }}"
  loop_control:
    label: "{{ item.0.distro }}/{{ item.0.codename }} {{ item.1 }}"
  file:
    name: "{{ installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}"
    state: directory

- name: download installer kernel images
  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: "{{ installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}/linux"
    mode: 0644
    force: "{{ debian_installer_force_download }}"

- name: download installer initrd.gz
  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: "{{ installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}/initrd.gz"
    mode: 0644
    force: "{{ debian_installer_force_download }}"