blob: fab32b02984a793ba61719ee110caff834153bb1 (
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: 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
|