Haproxy role now handle haproxy installation from backports for Debian Stretch

This commit is contained in:
Tristan PILAT 2018-07-24 12:29:42 +02:00
parent 99747e72b5
commit e83ca81776
4 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ Everything is in the `tasks/main.yml` file.
## Available variables
* `haproxy_jessie_backports` : on Debian Jessie, we can prefer v1.7 from backports (default: `False`)
* `haproxy_backports` : We can either prefer v1.7 from backports for Debian Jessie or v1.8 for Debian Stretch (default: `False`)
## Configuration templates

View file

@ -1,3 +1,3 @@
---
haproxy_jessie_backports: False
haproxy_backports: False
haproxy_stats_url: "http://127.0.0.1:8080/"

View file

@ -7,8 +7,8 @@
- haproxy
- packages
- include: packages_jessie_backports.yml
when: ansible_distribution_release == "jessie" and haproxy_jessie_backports
- include: packages_backports.yml
when: haproxy_backports
- name: Install HAProxy package
apt:

View file

@ -7,7 +7,7 @@
- haproxy
- packages
- name: Prefer HAProxy package from jessie-backports
- name: Prefer HAProxy package from backports
copy:
src: haproxy_apt_preferences
dest: /etc/apt/preferences.d/999-haproxy