Only check haproxy configs and start after everything is in place

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2015-08-19 01:18:31 +00:00
parent 8986bd5732
commit 3d0b3ba02e

View file

@ -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