diff options
Diffstat (limited to 'roles/installer/debian/usb')
-rw-r--r-- | roles/installer/debian/usb/tasks/main.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/roles/installer/debian/usb/tasks/main.yml b/roles/installer/debian/usb/tasks/main.yml new file mode 100644 index 00000000..60c2dfd5 --- /dev/null +++ b/roles/installer/debian/usb/tasks/main.yml @@ -0,0 +1,33 @@ +--- +- block: + - name: download installer + vars: + debian_installer_distros: + - distro: "{{ install_distro }}" + codename: "{{ install_codename }}" + arch: + - "{{ install.arch | default('amd64') }}" + import_role: + role: installer/debian/base + + - name: Create temporary workdir + tempfile: + state: directory + register: tmpdir + + - name: generate pressed file + vars: + preseed_tmpdir: "{{ tmpdir.path }}" + import_role: + name: installer/debian/preseed + + - name: Copy the preseed initramfs to the artifacts directory + copy: + src: "{{ tmpdir.path }}/initrd.preseed.gz" + dest: "{{ artifacts_dir }}/" + + always: + - name: Cleanup temporary workdir + file: + path: "{{ tmpdir.path }}" + state: absent |