forked from evolix/ansible-roles
Haproxy role now handle haproxy installation from backports for Debian Stretch
This commit is contained in:
parent
99747e72b5
commit
e83ca81776
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
haproxy_jessie_backports: False
|
||||
haproxy_backports: False
|
||||
haproxy_stats_url: "http://127.0.0.1:8080/"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue