Add ability to update HA-related containers

Home Assistant, Zigbee2MQTT, and ZWaveJS2MQTT can now be updated by
setting the corresponding Ansible variable.
This commit is contained in:
2021-08-12 19:02:34 -05:00
parent 8f6f553820
commit 7d2b3887c2
5 changed files with 7 additions and 0 deletions

View File

@@ -62,6 +62,7 @@
name: ghcr.io/home-assistant/{{ homeassistant_image_name }}
tag: stable
state: present
force: '{{ homeassistant_update|d|bool }}'
notify:
- restart homeassistant
tags:

View File

@@ -7,6 +7,7 @@ Type=notify
NotifyAccess=all
ExecStartPre=-/usr/bin/podman container rm --ignore -f homeassistant
ExecStart=/usr/bin/podman run \
--pull never \
--sdnotify=conmon --cgroups=no-conmon \
--rm \
--network=host \