Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajiska/ansible-simple-website
Simple project using Vagrant and Ansible to run a PHP website.
https://github.com/rajiska/ansible-simple-website
Last synced: 10 days ago
JSON representation
Simple project using Vagrant and Ansible to run a PHP website.
- Host: GitHub
- URL: https://github.com/rajiska/ansible-simple-website
- Owner: RaJiska
- Created: 2021-01-10T12:58:49.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T08:07:07.000Z (almost 4 years ago)
- Last Synced: 2024-10-13T02:02:51.654Z (25 days ago)
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible PHP Website
## Description
This is a simple ansible project that uses Vagrant to provision an Ubuntu Virtual Machine and Ansible to setup FPM, Nginx to run a trivial application.## Setup & Usage
To run this you will need to make sure your system has `vagrant` as well as `ansible` installed.```
$ vagrant up
$ ansible-playbook ansible/site.yaml -i ansible/hosts
```Make sure to add the domain `hello.world` redirecting to `10.0.0.10` in your `/etc/hosts` file of your host.
You may achieve this with the following command:```
$ echo -e '10.0.0.10\thello.world' |sudo tee -a /etc/hosts
```Fire up your web browser and browse to the address `http://hello.world`. You should be able to access the test website.