From d749f17f1bbdf5bc9bd401dfdae0d5eae1e2f68d Mon Sep 17 00:00:00 2001 From: Ruan Bekker Date: Sat, 17 Oct 2020 18:06:58 +0200 Subject: [PATCH] Update raspi-config.yml --- roles/common/tasks/raspi-config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/common/tasks/raspi-config.yml b/roles/common/tasks/raspi-config.yml index dfde754..e299d79 100644 --- a/roles/common/tasks/raspi-config.yml +++ b/roles/common/tasks/raspi-config.yml @@ -64,18 +64,21 @@ - name: enable/disable serial command: "raspi-config nonint do_serial {{ 0 if myconfig.enable_serial else 1 }}" when: "'enable_serial' in myconfig and myconfig.enable_serial != raspi_serial_enabled" + ignore_errors: True #to avoid error when not present tags: - raspi - name: enable/disable hardware serial command: "raspi-config nonint do_serial_hw {{ 0 if myconfig.enable_serial_hw else 1 }}" when: "'enable_serial_hw' in myconfig and myconfig.enable_serial_hw != raspi_serial_hw_enabled" + ignore_errors: True #to avoid error when not present tags: - raspi - name: enable/disable onewire command: "raspi-config nonint do_onewire {{ 0 if myconfig.enable_onewire else 1 }}" when: "'enable_onewire' in myconfig and myconfig.enable_onewire != raspi_onewire_enabled" + ignore_errors: True #to avoid error when not present tags: - raspi