Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.