From a5f3bf91280bf715ca7eb09fcae2e49d38b010f5 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 10 May 2024 16:24:54 +0200 Subject: [PATCH] Add option to enable spi --- sbc/galaxy.yml | 2 +- sbc/roles/dietpi_install/tasks/template_configs.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sbc/galaxy.yml b/sbc/galaxy.yml index 24a1830..55f38b5 100644 --- a/sbc/galaxy.yml +++ b/sbc/galaxy.yml @@ -1,6 +1,6 @@ namespace: serguzim name: sbc -version: 1.0.1 +version: 1.0.2 readme: README.md authors: - Tobias Reisinger diff --git a/sbc/roles/dietpi_install/tasks/template_configs.yml b/sbc/roles/dietpi_install/tasks/template_configs.yml index 2867537..3aa941a 100644 --- a/sbc/roles/dietpi_install/tasks/template_configs.yml +++ b/sbc/roles/dietpi_install/tasks/template_configs.yml @@ -37,6 +37,7 @@ regexp: '^#dtparam=spi=off$' replace: 'dtparam=spi=on' become: true + when: dietpi.enable_spi | default(False) - name: Try to copy Automation_Custom_Script.sh