Lets try and add a check here for haproxy. It won't catch non resolving names, but it will other errors.

This commit is contained in:
Kevin Fenzi 2015-06-24 18:04:34 +00:00 committed by Ralph Bean
parent 23b737c37e
commit 6a6d3ab34e

View file

@ -41,6 +41,14 @@
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: