2017-07-13 09:47:29 +02:00
|
|
|
---
|
|
|
|
|
2017-07-13 14:16:51 +02:00
|
|
|
- include_role:
|
2019-11-29 14:00:25 +01:00
|
|
|
name: evolix/apt
|
2017-07-13 14:16:51 +02:00
|
|
|
tasks_from: backports.yml
|
|
|
|
tags:
|
2020-06-14 12:35:44 +02:00
|
|
|
- haproxy
|
|
|
|
- packages
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
haproxy_backports_packages: "{{ haproxy_backports_packages_stretch }}"
|
|
|
|
when: ansible_distribution_release == 'stretch'
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
haproxy_backports_packages: "{{ haproxy_backports_packages_buster }}"
|
|
|
|
when: ansible_distribution_release == 'buster'
|
2017-07-13 14:16:51 +02:00
|
|
|
|
2018-07-24 12:29:42 +02:00
|
|
|
- name: Prefer HAProxy package from backports
|
2018-07-24 15:43:45 +02:00
|
|
|
template:
|
|
|
|
src: haproxy_apt_preferences.j2
|
2017-07-13 09:47:29 +02:00
|
|
|
dest: /etc/apt/preferences.d/999-haproxy
|
|
|
|
force: yes
|
|
|
|
mode: "0640"
|
|
|
|
register: haproxy_apt_preferences
|
|
|
|
tags:
|
2020-06-14 12:35:44 +02:00
|
|
|
- haproxy
|
|
|
|
- packages
|
2017-07-13 09:47:29 +02:00
|
|
|
|
|
|
|
- name: update apt
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
2019-12-31 15:34:48 +01:00
|
|
|
when: haproxy_apt_preferences is changed
|
2017-07-13 09:47:29 +02:00
|
|
|
tags:
|
2020-06-14 12:35:44 +02:00
|
|
|
- haproxy
|
|
|
|
- packages
|