aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-29 03:03:47 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-29 03:03:47 +0200
commit58662b3697b49a2d9e597c6f70dfbb78ab7482fd (patch)
treece158a9f254cdb029d0c9aef2a3f5e04802e897a
parent10b6bd340b80bc95fd179fe1525821a0e0ce16da (diff)
downloadl-a-b-VPS-58662b3697b49a2d9e597c6f70dfbb78ab7482fd.tar.gz
Restart Apache on Jenkins restart.
-rw-r--r--ansible-deploy/roles/jenkins/handlers/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/ansible-deploy/roles/jenkins/handlers/main.yml b/ansible-deploy/roles/jenkins/handlers/main.yml
index de84965..183c2bb 100644
--- a/ansible-deploy/roles/jenkins/handlers/main.yml
+++ b/ansible-deploy/roles/jenkins/handlers/main.yml
@@ -1,3 +1,7 @@
- name: Restart Jenkins
service: name=jenkins state=restarted
sudo: yes
+ # Apache proxy module sees that Jenkins is gone and then
+ # goes into some timeout before reconnecting to it again.
+ # Restart forces reconnect ASAP.
+ notify: Restart Apache