Ansible Role: Keepalived
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead of devops:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
handlers
meta
tasks
templates
vars
README.md
ansible.cfg
test.yml

README.md

Ansible Role: keepalived

Installs and configures keepalived.

Requirements

None.

Role Variables

defaults/main.yml

  • keepalived_global: []
  • keepalived_vrrp_sync_groups: []
  • keepalived_vrrp_scripts: []
  • keepalived_vrrp_instances: []

vars/main.yml

The full example of all options.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - role: keepalived
       keepalived_global:
         router_id: "DEVEL"
       keepalived_vrrp_sync_groups:
         haproxy:
           instances:
             - external
       keepalived_vrrp_scripts:
         check_haproxy:
           check_script: "killall -0 haproxy"
           interval: 2
           weight: 2
       keepalived_vrrp_instances:
         external:
           interface: "eth0"
           state: MASTER
           virtual_router_id: 10
           priority: 100
           advert_int: 1
           auth_pass: "password"
           vips:
             - "{{ ansible_default_ipv4.address }}"
           track_scripts:
             - check_haproxy
           track_interfaces:
             - eth1
           raw_config:
             - 'mcast_src_ip @IP'

Author Information

z