Skip to content

Commit e169da4

Browse files
committed
Add backports support for Debian squeeze/jessie
This commit extends the backports repository task to support Debian 6 "squeeze" and 8 "jessie". It is backwards-compatible with the previous task which only supported Debian 7 "wheezy".
1 parent 783878b commit e169da4

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tasks/install.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,23 @@
5757
- socat
5858
when: ansible_os_family == 'RedHat'
5959

60-
- name: 'Add haproxy apt repo'
60+
- name: 'Add haproxy apt repo (squeeze)'
6161
sudo: yes
6262
apt_repository:
63-
repo: "deb http://http.debian.net/debian wheezy-backports main"
63+
repo: deb http://http.debian.net/debian {{ ansible_distribution_release }}-backports-sloppy main
6464
state: present
6565
update_cache: yes
66-
when: ansible_distribution_release == "wheezy"
66+
when: ansible_distribution_release == 'squeeze'
6767

68-
- name: 'Add haproxy apt repo'
68+
- name: Add haproxy apt repo (wheezy/jessie)
69+
sudo: yes
70+
apt_repository:
71+
repo: deb http://http.debian.net/debian {{ ansible_distribution_release }}-backports main
72+
state: present
73+
update_cache: yes
74+
when: ansible_distribution_release == 'wheezy' or ansible_distribution_release == 'jessie'
75+
76+
- name: 'Add haproxy apt repo (Ubuntu)'
6977
sudo: yes
7078
apt_repository:
7179
repo: "ppa:vbernat/haproxy-1.5"

0 commit comments

Comments
 (0)