diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-07-03 02:34:31 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-07-03 02:34:31 +0200 |
commit | 6ee1827ad7a8b92014d909b507b95501950b3554 (patch) | |
tree | 4882fffb1d5989daa459f23b7827945efbf03634 /roles/installer/debian/usb/tasks/main.yml | |
parent | Merge branch 'topic/preseed-configurable-disk-layout' (diff) |
move usb install role to installer/debian/
Diffstat (limited to 'roles/installer/debian/usb/tasks/main.yml')
-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 |