blob: dc87655f55c9049bb17bd41d6cdd21b50e0fc1c6 (
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
28
29
30
31
32
33
34
35
|
---
- name: prepare directories for installer files
file:
name: "{{ installer_base_path }}/{{ debian_installer_distro }}-{{ debian_installer_codename }}/{{ debian_installer_arch }}-{{ debian_installer_variant }}"
state: directory
- name: download and verify installer files
block:
- name: fetch and verify installer checksums
include_tasks: "verify-{{ install_distro }}.yml"
- name: download installer kernel image
get_url:
url: "{{ debian_installer_base_url }}/{{ debian_installer_variant_path }}/{{ debian_installer_variant_kernal_image_name }}"
dest: "{{ installer_base_path }}/{{ debian_installer_distro }}-{{ debian_installer_codename }}/{{ debian_installer_arch }}-{{ debian_installer_variant }}/{{ debian_installer_variant_kernal_image_name }}"
checksum: "{{ debian_installer_kernel_checksum }}"
force: "{{ debian_installer_force_download }}"
mode: 0644
- name: download installer initrd.gz
get_url:
url: "{{ debian_installer_base_url }}/{{ debian_installer_variant_path }}/initrd.gz"
dest: "{{ installer_base_path }}/{{ debian_installer_distro }}-{{ debian_installer_codename }}/{{ debian_installer_arch }}-{{ debian_installer_variant }}/initrd.gz"
checksum: "{{ debian_installer_initrd_checksum }}"
force: "{{ debian_installer_force_download }}"
mode: 0644
rescue:
- name: remove all downloaded files
file:
name: "{{ installer_base_path }}/{{ debian_installer_distro }}-{{ debian_installer_codename }}/{{ debian_installer_arch }}-{{ debian_installer_variant }}"
state: absent
- fail:
msg: "download/verification of installer files failed"
|