2024-04-30 10:39:24 +00:00
|
|
|
- name: Download iso
|
|
|
|
ansible.builtin.get_url:
|
2024-04-30 10:43:56 +00:00
|
|
|
url: "{{ dietpi_download_base }}/{{ dietpi.img }}.img.xz"
|
|
|
|
dest: "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img.xz') | path_join }}"
|
2024-04-30 10:39:24 +00:00
|
|
|
- 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 }}"
|
2024-04-30 10:43:56 +00:00
|
|
|
cmd: xz -kfd "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img.xz') | path_join }}"
|