Fix enabling spi

This commit is contained in:
Tobias Reisinger 2024-05-06 23:52:24 +02:00
parent 5a1d171ff8
commit 83ca8b8d48
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -31,11 +31,12 @@
dest: "{{ (config_path, 'dietpi-wifi.txt') | path_join }}"
when: dietpi.auto_setup.net_wifi_enabled | default(False)
become: true
- name: Enable spi in boot.txt
- name: Enable spi in config.txt
ansible.builtin.replace:
path: "{{ (config_path, 'boot.txt') | path_join }}"
path: "{{ (config_path, 'config.txt') | path_join }}"
regexp: '^#dtparam=spi=off$'
replace: 'dtparam=spi=on'
become: true
- name: Try to copy Automation_Custom_Script.sh