Skip to content
Snippets Groups Projects
Commit adaa934e authored by jurgenhaas's avatar jurgenhaas
Browse files

home-assistant/netdata-alarms#2 Optionally apply patches when updating HA

parent 9bc4b3f3
Branches
Tags
No related merge requests found
......@@ -16,11 +16,16 @@
- /root/.ssh:/root/.ssh
notify:
- Install Alerta inside Container
- Apply patches inside Container
- Re-start the hass container
- name: Install Alerta inside Container
command: docker exec home-assistant pip install alerta
- name: Apply patches inside Container
command: docker exec home-assistant patch -p1 -N -d /usr/src/homeassistant -i /config/patches/{{ item }}.patch
with_items: '{{ home_assistant_patches|default([]) }}'
- name: Re-start the hass container
docker_container:
name: home-assistant
......@@ -34,3 +39,5 @@
- /var/lib/hass:/config
- /etc/localtime:/etc/localtime:ro
- /root/.ssh:/root/.ssh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment