use bool var to control cmdline patching
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0bf158ef1f
commit
476137dcc0
@ -36,7 +36,8 @@ homeassistant_open_ports:
|
||||
# override /boot/cmdline.txt with new content
|
||||
# this can be necessary if you use searial hardware
|
||||
# be careful! wrong config can make your system unusable!
|
||||
# homeassistant_cmdline_content: "console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait"
|
||||
homeassistant_cmdline_override_enabled: False
|
||||
homeassistant_cmdline_content: "console=tty1 root=/dev/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait"
|
||||
|
||||
# to prevent ModemManger from binding serial devices like CC2531
|
||||
# devices can be skipped by an udev rule
|
||||
|
@ -39,7 +39,7 @@
|
||||
copy:
|
||||
content: "{{ homeassistant_cmdline_content }}"
|
||||
dest: /boot/cmdline.txt
|
||||
when: homeassistant_cmdline_content is defined
|
||||
when: homeassistant_cmdline_override_enabled
|
||||
|
||||
- name: Exclude serial devices from ModemManager
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user