Varnish load balancer with two Apache/PHP backends for an AWX demo.
MIT License
This repository contains a demonstration PHP app that runs with three servers: a Varnish proxy frontend, and two PHP app server backends.
It uses a number of Ansible Galaxy collections and roles, and is meant to demonstrate how to run a playbook and use a dynamic AWS inventory in Ansible AWX or Tower.
The repository was created to demonstrate AWX and Tower for Jeff Geerling's Ansible 101 video series and Ansible for DevOps.
It is assumed you're running three AWS EC2 instances, running Debian 10. The instances should have the tag Name
set to:
awx-demo-varnish
awx-demo-php
awx-demo-php
Install required Ansible dependencies:
ansible-galaxy collection install -r collections/requirements.yml
ansible-galaxy role install -r roles/requirements.yml
Note: In Ansible 2.10 or later, you can just run:
ansible-galaxy install -r requirements.yml
Run the playbook:
ansible-playbook main.yml