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:
parent
23b737c37e
commit
6a6d3ab34e
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue