Skip to content

mrlesmithjr/ansible-nginx-load-balancer

Repository files navigation

ansible-nginx-load-balancer

Ansible role to install/configure an NGINX load balancer for:

Usages

  • HTTP Load Balancing
  • HTTPS Load Balancing
    • SSL Termination
    • Self Signed Certs
  • TCP Load Balancing
  • UDP Load Balancing
  • HA (Highly Available) Setup

Build Status

GitHub Actions

Molecule Test

Travis CI

Build Status

Requirements

For any required Ansible roles, review: requirements.yml

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

playbook.yml

License

MIT

Author Information

Larry Smith Jr.

NOTE: Repo has been created/updated using https://github.com/mrlesmithjr/cookiecutter-ansible-role as a template.