Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Restart services only when component is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Albert Moreno <albert.moreno@capside.com>
  • Loading branch information
torrentalle authored and Albert Moreno committed Apr 19, 2019
1 parent 3166c7a commit 7905661
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: sensu-backend
state: restarted
notify: wait for sensu-backend to accept connections
when: sensu_go_services.backend.state != 'stopped'

- name: wait for sensu-backend to accept connections
wait_for:
Expand All @@ -14,6 +15,7 @@
service:
name: sensu-agent
state: restarted
when: sensu_go_services.agent.state != 'stopped'

- name: update apt cache
apt:
Expand Down

0 comments on commit 7905661

Please sign in to comment.