Fix for proper package name depending on base OS distribution

Change-Id: I88c2f76dbb64fd9c863d47c5bc5fd43e0f0e819e
This commit is contained in:
Olivier Bourdon 2018-10-01 10:40:38 +02:00 committed by Jesse Pretorius (odyssey4me)
parent e1aabd05b8
commit 208513dfae
1 changed files with 1 additions and 1 deletions

View File

@ -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