ansible-nginx-load-balancer

An Ansible role to install/configure an NGINX load balancer for HTTP/HTTPS/TCP/UDP

Build Status

Build Status

Requirements

None

Role Variables

defaults/main.yml

Dependencies

The following Ansible roles should be used along with this ansible-nginx-load-balancer role.

  • ansible-etc-hosts
    • Provides the ability to update /etc/hosts with all hosts which are part of the solution
  • ansible-keepalived
    • Provides the ability to provide the VIP for HA of multiple ansible-nginx-load-balancer nodes.

You can install the above roles using ansible-galaxy and the included requirements

ansible-galaxy install -r requirements.yml

Example Playbook

Example playbook

Usages

  • HTTP Load Balancing

  • HTTPS Load Balancing

    • SSL Termination

    • Self Signed Certs

  • TCP Load Balancing

  • UDP Load Balancing

  • HA (Highly Available) Setup

License

MIT

Author Information

Larry Smith Jr.