From 4194b69f5a0f79ba5091a433da56928bfc280404 Mon Sep 17 00:00:00 2001
From: David Mehren <dmehren1@gmail.com>
Date: Sun, 28 Jun 2020 12:38:47 +0200
Subject: [PATCH] Update haproxy to 2.1

---
 tasks/install.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tasks/install.yml b/tasks/install.yml
index 5f1aab3..5b9cd1e 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -1,10 +1,15 @@
 ---
 
-- name: Add HAProxy 2.0 PPA
+- name: Add HAProxy 2.1 PPA
   apt_repository:
-    repo: 'ppa:vbernat/haproxy-2.0'
+    repo: 'ppa:vbernat/haproxy-2.1'
     state: present
 
+- name: Remove HAProxy 2.0 PPA
+  apt_repository:
+    repo: 'ppa:vbernat/haproxy-2.0'
+    state: absent
+
 - name: Remove HAProxy 1.8 PPA
   apt_repository:
     repo: 'ppa:vbernat/haproxy-1.8'
@@ -12,7 +17,7 @@
 
 - name: Install HAProxy
   apt:
-    name: "haproxy=2.0.*"
+    name: "haproxy=2.1.*"
     state: present
     update_cache: yes
 
-- 
GitLab