playbooks: healthcheck-infrastructure: Ensure netcat is installed
The netcat package is required to perform the HAProxy tests so make sure it is installed. Change-Id: Ic2202164c224db6f24674f294a203f08165823fe
This commit is contained in:
parent
f36835adf2
commit
6e3e63c0be
@ -49,6 +49,10 @@
|
||||
changed_when: false
|
||||
when: groups['haproxy'] | length > 1
|
||||
|
||||
- package:
|
||||
name: netcat
|
||||
state: present
|
||||
|
||||
# Fails if HAProxy is not running
|
||||
- name: Recording haproxy stats as a way to ensure haproxy runs
|
||||
shell: 'echo "show info;show stat" | nc -U /var/run/haproxy.stat'
|
||||
|
Loading…
Reference in New Issue
Block a user