diff --git a/roles/keepalived/tasks/main.yml b/roles/keepalived/tasks/main.yml index 245737e1a241b2085c5c555e4af89b29c633334a..b493b34462c6b379325f6384b24056a12fa74ae4 100644 --- a/roles/keepalived/tasks/main.yml +++ b/roles/keepalived/tasks/main.yml @@ -1,25 +1,4 @@ --- -- 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: /etc/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