homeassistant: Initial version of role
This commit is contained in:
parent
f3fc1b3f63
commit
810e64dde7
6 changed files with 108 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=HomeAssistant Container
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=ha
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--rm -p 127.0.0.1:8001:8123 \
|
||||
--name homeassistant \
|
||||
--env TZ=Europe/Helsinki \
|
||||
--volume /srv/homeassistant:/config:rw \
|
||||
docker.io/homeassistant/home-assistant:{{ homeassistant_version }}
|
||||
ExecStop=/usr/bin/podman stop --ignore homeassistant
|
||||
ExecStopPost=/usr/bin/podman rm -f --ignore homeassistant
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue