Skip to content

rockchico/ansible-awx-varnish-php-app

 
 

Repository files navigation

Ansible AWX Tower Demo - Varnish load-balanced PHP App

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.

Prerequisites

It is assumed you're running three AWS EC2 instances, running Debian 10. The instances should have the tag Name set to:

  • Instance 1: awx-demo-varnish
  • Instance 2: awx-demo-php
  • Instance 3: awx-demo-php

Usage

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

About

Varnish load balancer with two Apache/PHP backends for an AWX demo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 49.9%
  • PHP 26.1%
  • Python 20.1%
  • VCL 3.9%