summaryrefslogtreecommitdiff
path: root/roles/usb-install/tasks/main.yml
blob: 3153b633edac0f1760ba9bc398f720dab5635b12 (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
---
- block:
    - name: Create temporary workdir
      tempfile:
        state: directory
      register: tmpdir

    - import_role:
        name: installer/debian/preseed
      vars:
        preseed_tmpdir: "{{ tmpdir.path }}"

    - 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