Only check haproxy configs and start after everything is in place
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
8986bd5732
commit
3d0b3ba02e
1 changed files with 23 additions and 21 deletions
|
@ -33,27 +33,6 @@
|
|||
tags:
|
||||
- haproxy
|
||||
|
||||
- name: check haproxy cfg to make sure it is valid (prod)
|
||||
command: haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||
always_run: true
|
||||
register: haproxyconfigcheck
|
||||
changed_when: haproxyconfigcheck.rc != 0
|
||||
tags:
|
||||
- haproxy
|
||||
|
||||
- name: check haproxy cfg to make sure it is valid (prod)
|
||||
command: haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||
always_run: true
|
||||
register: haproxyconfigcheck
|
||||
changed_when: haproxyconfigcheck.rc != 0
|
||||
tags:
|
||||
- haproxy
|
||||
|
||||
- name: Make sure haproxy is awake and reporting for duty
|
||||
service: name=haproxy state=started enabled=yes
|
||||
tags:
|
||||
- haproxy
|
||||
|
||||
- name: install limits.conf and 503.http
|
||||
copy: src={{ item.file }}
|
||||
dest={{ item.dest }}
|
||||
|
@ -108,3 +87,26 @@
|
|||
tags:
|
||||
- haproxy
|
||||
- selinux
|
||||
|
||||
|
||||
- name: check haproxy cfg to make sure it is valid (prod)
|
||||
command: haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||
always_run: true
|
||||
register: haproxyconfigcheck
|
||||
changed_when: haproxyconfigcheck.rc != 0
|
||||
tags:
|
||||
- haproxy
|
||||
|
||||
- name: check haproxy cfg to make sure it is valid (prod)
|
||||
command: haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||
always_run: true
|
||||
register: haproxyconfigcheck
|
||||
changed_when: haproxyconfigcheck.rc != 0
|
||||
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