26 lines
755 B
YAML
26 lines
755 B
YAML
# We should just apt install it but it’s broken with Cumulus 5.4 + Debian 10.
|
|
- name: Install keepalived
|
|
block:
|
|
- name: Install deps for keepalived
|
|
package:
|
|
name: autoconf,automake,build-essential,pkg-config,libxtables-dev,libip4tc-dev,libip6tc-dev,libipset-dev,libnl-3-dev,libnl-genl-3-dev,libssl-dev
|
|
|
|
- name: Checkout keepalived source
|
|
git:
|
|
repo: https://github.com/acassen/keepalived
|
|
dest: /usr/local/src/keepalived
|
|
version: v2.2.7
|
|
|
|
- name: Build and install keepalived
|
|
shell: |
|
|
./autogen.sh
|
|
./configure --sysconfdir=/etc
|
|
make
|
|
make install
|
|
args:
|
|
chdir: /usr/local/src/keepalived
|
|
creates: /usr/local/sbin/keepalived
|
|
notify: reload systemd
|
|
|
|
- meta: flush_handlers
|