Go to file
2023-08-30 14:12:31 +03:00
defaults initial commit 2023-02-08 01:42:20 +03:00
handlers initial commit 2023-02-08 01:42:20 +03:00
meta initial commit 2023-02-08 01:42:20 +03:00
tasks keepalived: fix masked service for debian os family 2023-08-30 14:12:31 +03:00
templates initial commit 2023-02-08 01:42:20 +03:00
.gitignore ignore .galaxy_install_info 2023-02-08 01:43:12 +03:00
README.md initial commit 2023-02-08 01:42:20 +03:00

Setup keepalived service

Config example:

keepalived_config:
  global_defs:
    router_id: t1-dev-rabbitmq
  vrrp_track_process:
    haproxy:
      process: haproxy
      quorum: 1
      delay: 2
  vrrp_instance:
    VRRP_1:
      state: MASTER
      virtual_router_id: 50
      priority: "{{ ansible_default_ipv4.address.split('.')[-1][-2:] }}"
      interface: "{{ ansible_default_ipv4.interface }}"
      unicast_src_ip: "{{ ansible_default_ipv4.address }}"
      unicast_peer:
        - 10.89.10.71
        - 10.89.10.72
        - 10.89.10.73
      virtual_ipaddress:
        - "10.89.10.112/32 dev {{ ansible_default_ipv4.interface }}"
      track_process: 
        - haproxy