[keepalived] Install keepalived from buster-backports to avoid segfaults

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-07-11 01:03:22 +02:00
parent 91220c5238
commit f1d4872593
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 28 additions and 0 deletions

View File

@ -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 - name: Install keepalived
apt: apt:
update_cache: true update_cache: true

View File

@ -0,0 +1,7 @@
{{ ansible_header | comment }}
Package: keepalived
Pin: release n=buster-backports
Pin-Priority: 900