keepalived

Ansible Role: Keepalived

CI Ansible Galaxy

Installs Keepalived for kubernetes on Ubuntu Linux servers.

Note: This role officially supports Keepalived versions 2.0.20.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

k8s_control_plane_virtual_ip: 127.0.0.1
keepalived_unicast_peers: "{% for host in groups['masters'] %}'{{ hostvars[host]['ansible_host'] }}'{% if not loop.last %},{% endif %}{% endfor %}"
keepalived_password: 'd0cker'
keepalived_priority: "{% if inventory_hostname == groups['masters'][0] %}150{% elif inventory_hostname == groups['masters'][1] %}120{% else %}80{% endif %}"
keepalived_router_id: 51

Example Playbook

- hosts: kubernetes-master
  become: true
  roles:
    - { role: kcih4518.keepalived }

Author Information

This role was created in 2022 by Avery Yang.

About

Keepalived installation and configuration.

Install
ansible-galaxy install Kcih4518/keepalived
GitHub repository
License
Unknown
Downloads
19
Owner
You don't have problems naming folders and files because you spend most of your time naming variables.