diff --git a/sbc/roles/dietpi_install/tasks/template_configs.yml b/sbc/roles/dietpi_install/tasks/template_configs.yml index 7bc9c41..2867537 100644 --- a/sbc/roles/dietpi_install/tasks/template_configs.yml +++ b/sbc/roles/dietpi_install/tasks/template_configs.yml @@ -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