Skip to content

Commit

Permalink
feat(install_hacs): Use handler to restart home assistant after hacs …
Browse files Browse the repository at this point in the history
…install

Fixes #51
  • Loading branch information
jhampson-dbre committed Sep 13, 2022
1 parent 34f54d5 commit 9d219f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions roles/install_hacs/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: restart home assistant
shell: |
ha core restart
args:
warn: false
8 changes: 2 additions & 6 deletions roles/install_hacs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,5 @@
src: https://github.com/hacs/integration/releases/latest/download/hacs.zip
dest: "{{ ha_path }}/custom_components/hacs"
remote_src: yes

- name: Restart Home Assistant
shell: |
ha core restart
args:
warn: no # noqa 301
notify:
- restart home assistant

0 comments on commit 9d219f8

Please sign in to comment.