Add ability to update HA-related containers

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

View File

@ -10,3 +10,6 @@ mosquitto_listeners:
mosquitto_password_file: /etc/mosquitto/passwd
apache_default_ssl_vhost: false
homeassistant_server_name: homeassistant.pyrocufflink.blue
homeassistant_update: false
zwavejs2mqtt_update: '{{ homeassistant_update|bool }}'
zigbee2mqtt_update: '{{ homeassistant_update|bool }}'

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 \

View File

@ -32,6 +32,7 @@
name: docker.io/koenkk/zigbee2mqtt
tag: latest
state: present
force: '{{ zigbee2mqtt_update|d|bool }}'
notify:
- restart zigbee2mqtt
tags:

View File

@ -32,6 +32,7 @@
name: docker.io/zwavejs/zwavejs2mqtt
tag: latest
state: present
force: '{{ zwavejs2mqtt_update|d|bool }}'
notify:
- restart zwavejs2mqtt
tags: