8 lines
508 B
YAML
8 lines
508 B
YAML
- name: Download iso
|
|
ansible.builtin.get_url:
|
|
url: "{{ dietpi_download_base }}/{{ dietpi.img }}.img.xz"
|
|
dest: "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img.xz') | path_join }}"
|
|
- name: Extract iso
|
|
ansible.builtin.command:
|
|
#cmd: 7z x -y -o"{{ build_dir.path }}" "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.7z') | path_join }}"
|
|
cmd: xz -kfd "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img.xz') | path_join }}"
|