From 7c2f7158d1bd807da037f7b990da8b0068a2fb6e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 1 Dec 2016 22:29:04 +0000 Subject: [PATCH] Fix haproxy for proxy restarting too --- roles/haproxy/rewrite/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/haproxy/rewrite/tasks/main.yml b/roles/haproxy/rewrite/tasks/main.yml index 95a994b44e..e43776fa25 100644 --- a/roles/haproxy/rewrite/tasks/main.yml +++ b/roles/haproxy/rewrite/tasks/main.yml @@ -4,3 +4,12 @@ tags: - haproxy - haproxy/rewrite + when: not inventory_hostname.startswith('proxy') + +- template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf + notify: + - reload proxyhttpd + tags: + - haproxy + - haproxy/rewrite + when: inventory_hostname.startswith('proxy')