keepalived: do not install the PPA on Ubuntu bionic.

This commit is contained in:
Andrea Dell'Amico 2019-05-30 18:18:26 +02:00
parent 22051c8a21
commit ff7f2b6188
1 changed files with 3 additions and 2 deletions

View File

@ -2,10 +2,11 @@
- block: - block:
- name: Install the keepalived repository - name: Install the keepalived repository
apt_repository: repo={{ keepalived_repo }} apt_repository: repo={{ keepalived_repo }} update_cache=yes
when: ansible_distribution_major_version <= '16'
- name: Install the keepalived package - name: Install the keepalived package
apt: name={{ item }} state={{ keepalived_pkg_state }} update_cache=yes apt: name={{ item }} state={{ keepalived_pkg_state }} update_cache=yes cache_valid_time=1800
with_items: '{{ keepalived_pkgs }}' with_items: '{{ keepalived_pkgs }}'
- name: Install the keepalived configuration - name: Install the keepalived configuration