From 6e3e63c0be628e94858adcbc66c092226c108ec1 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 12 Sep 2018 15:25:00 +0100 Subject: [PATCH] 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 --- playbooks/healthcheck-infrastructure.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/healthcheck-infrastructure.yml b/playbooks/healthcheck-infrastructure.yml index 10779f6143..70b091693b 100644 --- a/playbooks/healthcheck-infrastructure.yml +++ b/playbooks/healthcheck-infrastructure.yml @@ -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'