From 83ca8b8d48e35dd455e69c6ffe01e25935931417 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Mon, 6 May 2024 23:52:24 +0200 Subject: [PATCH] Fix enabling spi --- sbc/roles/dietpi_install/tasks/template_configs.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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