From 208513dfae55fab0371d8c22dd9ee6db31d3bcc5 Mon Sep 17 00:00:00 2001 From: Olivier Bourdon Date: Mon, 1 Oct 2018 10:40:38 +0200 Subject: [PATCH] Fix for proper package name depending on base OS distribution Change-Id: I88c2f76dbb64fd9c863d47c5bc5fd43e0f0e819e --- playbooks/healthcheck-infrastructure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/healthcheck-infrastructure.yml b/playbooks/healthcheck-infrastructure.yml index 70b091693b..d1e446888e 100644 --- a/playbooks/healthcheck-infrastructure.yml +++ b/playbooks/healthcheck-infrastructure.yml @@ -50,7 +50,7 @@ when: groups['haproxy'] | length > 1 - package: - name: netcat + name: "{% if ansible_distribution | lower == 'centos' %}nc{% elif ansible_distribution | lower == 'suse' %}netcat-openbsd{% else %}netcat{% endif %}" state: present # Fails if HAProxy is not running