Update raspi-config.yml

master
Ruan Bekker 4 years ago committed by GitHub
parent fe3e4ba4d4
commit d749f17f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      roles/common/tasks/raspi-config.yml

@ -64,18 +64,21 @@
- name: enable/disable serial - name: enable/disable serial
command: "raspi-config nonint do_serial {{ 0 if myconfig.enable_serial else 1 }}" 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" when: "'enable_serial' in myconfig and myconfig.enable_serial != raspi_serial_enabled"
ignore_errors: True #to avoid error when not present
tags: tags:
- raspi - raspi
- name: enable/disable hardware serial - name: enable/disable hardware serial
command: "raspi-config nonint do_serial_hw {{ 0 if myconfig.enable_serial_hw else 1 }}" 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" 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: tags:
- raspi - raspi
- name: enable/disable onewire - name: enable/disable onewire
command: "raspi-config nonint do_onewire {{ 0 if myconfig.enable_onewire else 1 }}" 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" when: "'enable_onewire' in myconfig and myconfig.enable_onewire != raspi_onewire_enabled"
ignore_errors: True #to avoid error when not present
tags: tags:
- raspi - raspi

Loading…
Cancel
Save