Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geerlingguy/ansible-awx-varnish-php-app
Varnish load balancer with two Apache/PHP backends for an AWX demo.
https://github.com/geerlingguy/ansible-awx-varnish-php-app
ansible apache awx demo php tower varnish
Last synced: 19 days ago
JSON representation
Varnish load balancer with two Apache/PHP backends for an AWX demo.
- Host: GitHub
- URL: https://github.com/geerlingguy/ansible-awx-varnish-php-app
- Owner: geerlingguy
- License: mit
- Created: 2020-05-27T00:22:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T16:09:55.000Z (over 4 years ago)
- Last Synced: 2024-10-10T04:06:51.384Z (about 1 month ago)
- Topics: ansible, apache, awx, demo, php, tower, varnish
- Language: CSS
- Homepage: https://www.youtube.com/watch?v=iKmY4jEiy_A
- Size: 14.6 KB
- Stars: 9
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.jeffgeerling.com/blog/2020/ansible-101-jeff-geerling-youtube-streaming-series) and [Ansible for DevOps](https://www.ansiblefordevops.com).
## 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