use bool var to control cmdline patching
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-05-04 17:58:03 +02:00
parent 0bf158ef1f
commit 476137dcc0
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,8 @@ homeassistant_open_ports:
# override /boot/cmdline.txt with new content # override /boot/cmdline.txt with new content
# this can be necessary if you use searial hardware # this can be necessary if you use searial hardware
# be careful! wrong config can make your system unusable! # 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 # to prevent ModemManger from binding serial devices like CC2531
# devices can be skipped by an udev rule # devices can be skipped by an udev rule

View File

@ -39,7 +39,7 @@
copy: copy:
content: "{{ homeassistant_cmdline_content }}" content: "{{ homeassistant_cmdline_content }}"
dest: /boot/cmdline.txt dest: /boot/cmdline.txt
when: homeassistant_cmdline_content is defined when: homeassistant_cmdline_override_enabled
- name: Exclude serial devices from ModemManager - name: Exclude serial devices from ModemManager
template: template: