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
|
mosquitto_password_file: /etc/mosquitto/passwd
|
||||||
apache_default_ssl_vhost: false
|
apache_default_ssl_vhost: false
|
||||||
homeassistant_server_name: homeassistant.pyrocufflink.blue
|
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 }}
|
name: ghcr.io/home-assistant/{{ homeassistant_image_name }}
|
||||||
tag: stable
|
tag: stable
|
||||||
state: present
|
state: present
|
||||||
|
force: '{{ homeassistant_update|d|bool }}'
|
||||||
notify:
|
notify:
|
||||||
- restart homeassistant
|
- restart homeassistant
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -7,6 +7,7 @@ Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
ExecStartPre=-/usr/bin/podman container rm --ignore -f homeassistant
|
ExecStartPre=-/usr/bin/podman container rm --ignore -f homeassistant
|
||||||
ExecStart=/usr/bin/podman run \
|
ExecStart=/usr/bin/podman run \
|
||||||
|
--pull never \
|
||||||
--sdnotify=conmon --cgroups=no-conmon \
|
--sdnotify=conmon --cgroups=no-conmon \
|
||||||
--rm \
|
--rm \
|
||||||
--network=host \
|
--network=host \
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
name: docker.io/koenkk/zigbee2mqtt
|
name: docker.io/koenkk/zigbee2mqtt
|
||||||
tag: latest
|
tag: latest
|
||||||
state: present
|
state: present
|
||||||
|
force: '{{ zigbee2mqtt_update|d|bool }}'
|
||||||
notify:
|
notify:
|
||||||
- restart zigbee2mqtt
|
- restart zigbee2mqtt
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
name: docker.io/zwavejs/zwavejs2mqtt
|
name: docker.io/zwavejs/zwavejs2mqtt
|
||||||
tag: latest
|
tag: latest
|
||||||
state: present
|
state: present
|
||||||
|
force: '{{ zwavejs2mqtt_update|d|bool }}'
|
||||||
notify:
|
notify:
|
||||||
- restart zwavejs2mqtt
|
- restart zwavejs2mqtt
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in New Issue