add cmdline patch

This commit is contained in:
Robert Kaussow 2019-05-04 17:25:31 +02:00
parent 44a9d73a41
commit 2132d119b1
2 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,11 @@ homeassistant_open_ports:
-A INPUT -m state --state NEW -p tcp --dport {{ homeassistant_http_bind_port }} -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport {{ homeassistant_http_bind_port }} -j ACCEPT
state: present state: present
# 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_nginx_vhost_enabled: False homeassistant_nginx_vhost_enabled: False
homeassistant_nginx_server: localhost homeassistant_nginx_server: localhost
homeassistant_nginx_vhost_dir: /etc/nginx/sites-available homeassistant_nginx_vhost_dir: /etc/nginx/sites-available

View File

@ -35,6 +35,12 @@
become_user: "{{ homeassistant_user }}" become_user: "{{ homeassistant_user }}"
- block: - block:
- name: Patch /boot/cmdline
copy:
content: "{{ homeassistant_cmdline_content }}"
dest: /boot/cmdline.txt
when: homeassistant_cmdline_content is defined
- name: Copy systemd unit file - name: Copy systemd unit file
template: template:
src: "etc/systemd/system/homeassistant.service.j2" src: "etc/systemd/system/homeassistant.service.j2"