summaryrefslogtreecommitdiff
path: root/roles/debian-installer/tasks/main.yml
blob: eb32f6aa9793b3ca37e88955a248c2a27da22207 (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
  with_subelements:
    - "{{ distros }}"
    - arch
  file:
    name: "{{ debian_installer_path }}/{{ item.0.distro }}-{{ item.0.codename }}/{{ item.1 }}"
    state: directory

- name: download installer kernel images
  with_subelements:
    - "{{ distros }}"
    - arch
  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"
    mode: 0644
    force: "{{ debian_installer_force_download }}"

- name: download installer initrd.gz
  with_subelements:
    - "{{ distros }}"
    - arch
  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"
    mode: 0644
    force: "{{ debian_installer_force_download }}"