From 59b0fd4bfae25c792de8d5d403390af021a009f7 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 6 Jan 2015 19:40:05 +0000 Subject: [PATCH] Gotta actually start the thing. --- roles/haproxy/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index 15096fcfcb..154fd90c58 100644 --- a/roles/haproxy/tasks/main.yml +++ b/roles/haproxy/tasks/main.yml @@ -15,6 +15,8 @@ owner=root group=root mode=0600 with_items: - { file: haproxy.cfg, dest: /etc/haproxy/haproxy.cfg } + notify: + - restart haproxy when: env != 'staging' tags: - haproxy @@ -26,6 +28,13 @@ with_items: - { file: haproxy.cfg.stg, dest: /etc/haproxy/haproxy.cfg } when: env == 'staging' + notify: + - restart haproxy + tags: + - haproxy + +- name: Make sure haproxy is awake and reporting for duty + service: name=haproxy state=started enabled=yes tags: - haproxy