[keepalived] Install keepalived from buster-backports to avoid segfaults
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
91220c5238
commit
f1d4872593
|
@ -1,4 +1,25 @@
|
|||
---
|
||||
- name: Add buster-backports to apt sources
|
||||
apt_repository:
|
||||
repo: deb {{ debian_mirror }} buster-backports main
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution == "Debian"
|
||||
- ansible_distribution_major_version | int == 10
|
||||
- ansible_distribution_release == "buster"
|
||||
|
||||
- name: Use buster-backports to install keepalived
|
||||
template:
|
||||
src: apt/preferences.d/keepalived.j2
|
||||
dest: apt/preferences.d/keepalived
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when:
|
||||
- ansible_distribution == "Debian"
|
||||
- ansible_distribution_major_version | int == 10
|
||||
- ansible_distribution_release == "buster"
|
||||
|
||||
- name: Install keepalived
|
||||
apt:
|
||||
update_cache: true
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{{ ansible_header | comment }}
|
||||
|
||||
|
||||
Package: keepalived
|
||||
Pin: release n=buster-backports
|
||||
Pin-Priority: 900
|
||||
|
Loading…
Reference in New Issue