GithubHelp home page GithubHelp logo

krreesh / ansible-awx-varnish-php-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geerlingguy/ansible-awx-varnish-php-app

0.0 0.0 0.0 24 KB

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

Home Page: https://www.youtube.com/watch?v=iKmY4jEiy_A

License: MIT License

Python 20.08% PHP 26.07% CSS 49.97% VCL 3.88%

ansible-awx-varnish-php-app's Introduction

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

ansible-awx-varnish-php-app's People

Contributors

geerlingguy avatar krreesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.