From 7d4a5a17b50225a3e43a53d5d1c85c00ed49ca5b Mon Sep 17 00:00:00 2001 From: Karl Goetz Date: Sun, 2 Nov 2014 11:16:29 +1100 Subject: [PATCH] Add handler to restart broker and fix restarts I changed the broker restart to restart the arbiter instead. What I forgot to do was change the items making the call in the first place. Since web ui is part of broker I've added back the broker restart so we have two handlers now. --- handlers/main.yml | 5 ++++- tasks/configure-shinken-contacts.yml | 2 +- tasks/configure-shinken-hosts.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 091fb45..fa4ba10 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,7 @@ -# Broker didn't do what i wanted, lets try restarting arbiter +--- - name: restart shinken arbiter service: name=shinken-arbiter state=restarted +- name: restart shinken broker + service: name=shinken-broker state=restarted + diff --git a/tasks/configure-shinken-contacts.yml b/tasks/configure-shinken-contacts.yml index df75f35..91e5748 100644 --- a/tasks/configure-shinken-contacts.yml +++ b/tasks/configure-shinken-contacts.yml @@ -5,5 +5,5 @@ dest=/etc/shinken/contacts.cfg mode=640 notify: - - restart shinken broker + - restart shinken arbiter diff --git a/tasks/configure-shinken-hosts.yml b/tasks/configure-shinken-hosts.yml index 1da42e7..28b8c52 100644 --- a/tasks/configure-shinken-hosts.yml +++ b/tasks/configure-shinken-hosts.yml @@ -6,6 +6,6 @@ with_items: - loop over hosts here notify: - - restart shinken broker + - restart shinken arbiter