--- # file: hosts haproxy: hosts: dev-ha01: ansible_host: 10.1.1.3 haproxy_shared_state: MASTER haproxy_shared_priority: 101 haproxy_bind_adapter: "eth0" haproxy_keepalived_adapter: "eth0" haproxy_keepalived_adapter_vlan: "100" haproxy_keepalived_ip: 172.16.10.1/24 dev-ha02: ansible_host: 10.1.1.4 haproxy_shared_state: BACKUP haproxy_shared_priority: 100 haproxy_bind_adapter: "eth0" haproxy_keepalived_adapter: "eth0" haproxy_keepalived_adapter_vlan: "100" haproxy_keepalived_ip: 172.16.10.2/24 dev-ha03: ansible_host: 10.1.1.5 haproxy_shared_state: BACKUP haproxy_shared_priority: 99 haproxy_bind_adapter: "eth0" haproxy_keepalived_adapter: "eth0" haproxy_keepalived_adapter_vlan: "100" haproxy_keepalived_ip: 172.16.10.3/24 vars: haproxy_shared_ip: "10.10.2.60" haproxy_shared_ip_subnet: "/24" haproxy_shared_virtual_router_id: 25