add cmdline patch
This commit is contained in:
parent
44a9d73a41
commit
2132d119b1
@ -33,6 +33,11 @@ homeassistant_open_ports:
|
||||
-A INPUT -m state --state NEW -p tcp --dport {{ homeassistant_http_bind_port }} -j ACCEPT
|
||||
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_server: localhost
|
||||
homeassistant_nginx_vhost_dir: /etc/nginx/sites-available
|
||||
|
@ -35,6 +35,12 @@
|
||||
become_user: "{{ homeassistant_user }}"
|
||||
|
||||
- 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
|
||||
template:
|
||||
src: "etc/systemd/system/homeassistant.service.j2"
|
||||
|
Loading…
Reference in New Issue
Block a user