diff options
| author | Ralph Bean <rbean@redhat.com> | 2015-01-06 19:40:05 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2015-01-06 19:40:05 +0000 |
| commit | 59b0fd4bfae25c792de8d5d403390af021a009f7 (patch) | |
| tree | edfbaa713778227d2db72f584a29cf49e9e62723 | |
| parent | 0b41c10d1e565e9d65456ad624d819e58fd8ced7 (diff) | |
Gotta actually start the thing.
| -rw-r--r-- | roles/haproxy/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index 15096fcfc..154fd90c5 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 |
