Add ability to update HA-related containers
Home Assistant, Zigbee2MQTT, and ZWaveJS2MQTT can now be updated by setting the corresponding Ansible variable.jenkins-master
parent
8f6f553820
commit
7d2b3887c2
|
@ -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 }}'
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
name: docker.io/koenkk/zigbee2mqtt
|
||||
tag: latest
|
||||
state: present
|
||||
force: '{{ zigbee2mqtt_update|d|bool }}'
|
||||
notify:
|
||||
- restart zigbee2mqtt
|
||||
tags:
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
name: docker.io/zwavejs/zwavejs2mqtt
|
||||
tag: latest
|
||||
state: present
|
||||
force: '{{ zwavejs2mqtt_update|d|bool }}'
|
||||
notify:
|
||||
- restart zwavejs2mqtt
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue