Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhojpatrick/ansible-example-apache-proxies
Example Apache Web Server project using Vagrant/VirtualBox to demonstrate how to use Ansible to configure Apache Web Server Virtual Hosts as Proxies.
https://github.com/nhojpatrick/ansible-example-apache-proxies
ansible vagrant virtualbox
Last synced: about 1 month ago
JSON representation
Example Apache Web Server project using Vagrant/VirtualBox to demonstrate how to use Ansible to configure Apache Web Server Virtual Hosts as Proxies.
- Host: GitHub
- URL: https://github.com/nhojpatrick/ansible-example-apache-proxies
- Owner: nhojpatrick
- License: mit
- Created: 2020-12-15T09:36:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-16T18:24:19.000Z (about 4 years ago)
- Last Synced: 2024-10-14T11:37:04.886Z (2 months ago)
- Topics: ansible, vagrant, virtualbox
- Language: HTML
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Apache Web Server Tutorial
Covers creating a basic apache httpd for learning and training.
Uses Vagrant to create and configure Virtual Box VM's, then Ansible to configure those VM's.
## 1. Overview
### Hosts
1. Touchdown
Used to configure webhost[0-2]. Uses ubuntu as centos has issues with shared file systems.1. webhost0
Main web server we focus on, looking at virtual hosts and configuring a proxy for webhost1 and webhost2. Uses CentOS as it's most like RedHat1. webhost1
Example backend server so webhost0 can demonstrate vhosts and proxies. Uses CentOS as it's most like RedHat1. webhost2
Example backend server so webhost0 can demonstrate vhosts and proxies. Uses CentOS as it's most like RedHat## 2. Setup Your ssh keys
```
$ ssh-keygen -f `pwd`/provisioning/.ssh/id_rsa
```NOTE: Press enter to skip have a password for the ssh key
## 3. Create Env
All the webhost[0-2] are configured to auto boot, so a simple `vagrant up` will boot everything.
```
$ vagrant up
```## 4. Create Touchdown
The touchdown server is not configured to auto boot, so needs to be explictly started.
```
$ vagrant up touchdown
```## 5. Configure Apache
```
$ vagrant ssh touchdown
vagrant@touchdown:~$ cd /vagrant/setup/
vagrant@touchdown:/vagrant/setup$ ansible-galaxy collection install ansible.posix
vagrant@touchdown:/vagrant/setup$ ansible-galaxy install -r web_requirements.yaml
vagrant@touchdown:/vagrant/setup$ ansible-playbook -i hosts playbook.yaml
vagrant@touchdown:/vagrant/setup$
```