Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Home Assistant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
Home Assistant
Commits
adaa934e
Commit
adaa934e
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
home-assistant/netdata-alarms#2
Optionally apply patches when updating HA
parent
9bc4b3f3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/main.yml
+7
-0
7 additions, 0 deletions
handlers/main.yml
with
7 additions
and
0 deletions
handlers/main.yml
+
7
−
0
View file @
adaa934e
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment