mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-20 01:11:38 +02:00
Update raspi-config.yml
This commit is contained in:
parent
fe3e4ba4d4
commit
d749f17f1b
@ -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…
x
Reference in New Issue
Block a user