Compare commits
2 Commits
bd1f506d8b
...
4e9f1c299c
Author | SHA1 | Date |
---|---|---|
Patrick Neff | 4e9f1c299c | |
Patrick Neff | ebff3f1712 |
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"*.yml": "ansible"
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,7 +5,6 @@ After=network-online.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=homeassistant
|
User=homeassistant
|
||||||
WorkingDirectory=/home/homeassistant/.homeassistant
|
|
||||||
ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
|
ExecStart=/srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
- python3
|
- python3
|
||||||
- python3-dev
|
- python3-dev
|
||||||
- python3-venv
|
- python3-venv
|
||||||
|
- python3-virtualenv
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- libffi-dev
|
- libffi-dev
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
|
@ -21,6 +22,14 @@
|
||||||
name: homeassistant
|
name: homeassistant
|
||||||
virtualenv: /srv/homeassistant
|
virtualenv: /srv/homeassistant
|
||||||
|
|
||||||
|
- name: Fix permissions.
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /srv/homeassistant
|
||||||
|
state: directory
|
||||||
|
owner: homeassistant
|
||||||
|
group: homeassistant
|
||||||
|
recurse: yes
|
||||||
|
|
||||||
- name: Create home-assistant systemd service.
|
- name: Create home-assistant systemd service.
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: homeassistant.service
|
src: homeassistant.service
|
||||||
|
@ -34,3 +43,4 @@
|
||||||
name: homeassistant
|
name: homeassistant
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
daemon-reload: yes
|
||||||
|
|
Loading…
Reference in New Issue