From 5181422d5fe765ad3be0457e8c59d2f6760e6158 Mon Sep 17 00:00:00 2001
From: David Mehren <git@herrmehren.de>
Date: Sun, 11 Jul 2021 09:55:39 +0200
Subject: [PATCH] Update haproxy to 2.4

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

diff --git a/tasks/install.yml b/tasks/install.yml
index 5c6fd55..0dfe005 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -1,10 +1,15 @@
 ---
 
-- name: Add HAProxy 2.3 PPA
+- name: Add HAProxy 2.4 PPA
   apt_repository:
-    repo: 'ppa:vbernat/haproxy-2.3'
+    repo: 'ppa:vbernat/haproxy-2.4'
     state: present
 
+- name: Remove HAProxy 2.3 PPA
+  apt_repository:
+    repo: 'ppa:vbernat/haproxy-2.3'
+    state: absent
+
 - name: Remove HAProxy 2.2 PPA
   apt_repository:
     repo: 'ppa:vbernat/haproxy-2.2'
@@ -27,7 +32,7 @@
 
 - name: Install HAProxy
   apt:
-    name: "haproxy=2.3.*"
+    name: "haproxy=2.4.*"
     state: present
     update_cache: yes
 
-- 
GitLab