Gotta actually start the thing.
This commit is contained in:
parent
0b41c10d1e
commit
59b0fd4bfa
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue