diff --git a/tasks/install.yml b/tasks/install.yml index 6d10a40f5747b0878ff57f44cc84d802c0a76840..33c3166915b464e0aa374eeb81fe85eb06e36d5f 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -1,53 +1,28 @@ --- -- name: Add HAProxy 2.7 PPA +- name: Add HAProxy 2.8 PPA ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.7' + repo: 'ppa:vbernat/haproxy-2.8' state: present -- name: Remove HAProxy 2.6 PPA +- name: Remove old HAProxy PPAs ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.6' - state: absent - -- name: Remove HAProxy 2.5 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.5' - state: absent - -- name: Remove HAProxy 2.4 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.4' - state: absent - -- name: Remove HAProxy 2.3 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.3' - state: absent - -- name: Remove HAProxy 2.2 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.2' - state: absent - -- name: Remove HAProxy 2.1 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.1' - state: absent - -- name: Remove HAProxy 2.0 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-2.0' - state: absent - -- name: Remove HAProxy 1.8 PPA - ansible.builtin.apt_repository: - repo: 'ppa:vbernat/haproxy-1.8' + repo: "ppa:vbernat/haproxy-{{ item }}" state: absent + loop: + - "2.7" + - "2.6" + - "2.5" + - "2.4" + - "2.3" + - "2.2" + - "2.1" + - "2.0" + - "1.8" - name: Install HAProxy ansible.builtin.apt: - name: "haproxy=2.7.*" + name: "haproxy=2.8.*" state: present update_cache: true