Fix download url
This commit is contained in:
parent
f615c00fdb
commit
5a1d171ff8
4 changed files with 11 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
namespace: serguzim
|
namespace: serguzim
|
||||||
name: sbc
|
name: sbc
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
readme: README.md
|
readme: README.md
|
||||||
authors:
|
authors:
|
||||||
- Tobias Reisinger <tobias@msrg.cc>
|
- Tobias Reisinger <tobias@msrg.cc>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Burn img to device
|
- name: Burn img to device
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: dd if="{{ dietpi.img}}.img" of="{{ dietpi_device }}" bs=4M status=progress
|
cmd: dd if="{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img') | path_join }}" of="{{ dietpi_device }}" bs=4M status=progress
|
||||||
chdir: "{{ build_dir.path }}"
|
chdir: "{{ build_dir.path }}"
|
||||||
become: true
|
become: true
|
||||||
register: cmd_result
|
register: cmd_result
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
- name: Download iso
|
- name: Download iso
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ dietpi_download_base }}/{{ dietpi.img }}.7z"
|
url: "{{ dietpi_download_base }}/{{ dietpi.img }}.img.xz"
|
||||||
dest: "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.xz') | path_join }}"
|
dest: "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img.xz') | path_join }}"
|
||||||
- name: Extract iso
|
- name: Extract iso
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
#cmd: 7z x -y -o"{{ build_dir.path }}" "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.7z') | path_join }}"
|
#cmd: 7z x -y -o"{{ build_dir.path }}" "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.7z') | path_join }}"
|
||||||
cmd: xz -d "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.xz') | path_join }}"
|
cmd: xz -kfd "{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img.xz') | path_join }}"
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,12 @@
|
||||||
dest: "{{ (config_path, 'dietpi-wifi.txt') | path_join }}"
|
dest: "{{ (config_path, 'dietpi-wifi.txt') | path_join }}"
|
||||||
when: dietpi.auto_setup.net_wifi_enabled | default(False)
|
when: dietpi.auto_setup.net_wifi_enabled | default(False)
|
||||||
become: true
|
become: true
|
||||||
|
- name: Enable spi in boot.txt
|
||||||
|
ansible.builtin.replace:
|
||||||
|
path: "{{ (config_path, 'boot.txt') | path_join }}"
|
||||||
|
regexp: '^#dtparam=spi=off$'
|
||||||
|
replace: 'dtparam=spi=on'
|
||||||
|
|
||||||
|
|
||||||
- name: Try to copy Automation_Custom_Script.sh
|
- name: Try to copy Automation_Custom_Script.sh
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|
Loading…
Reference in a new issue