From dd4fd53ce7a8e62a057d1260c5b1abc090a9d5fd Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 2 Feb 2016 08:56:42 -0500 Subject: [PATCH] Haproxy needs to be enabled on init --- roles/proxy/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/proxy/tasks/main.yml b/roles/proxy/tasks/main.yml index 72163c0..9c037b5 100644 --- a/roles/proxy/tasks/main.yml +++ b/roles/proxy/tasks/main.yml @@ -10,5 +10,10 @@ - name: Create haproxy config file template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg +- name: Enable init script + replace: dest='/etc/default/haproxy' + regexp='ENABLED=0' + replace='ENABLED=1' + - name: Restart haproxy service: name=haproxy state=restarted