Skip to content

Simple project using Vagrant and Ansible to run a PHP website.

Notifications You must be signed in to change notification settings

RaJiska/ansible-simple-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple project using Vagrant and Ansible to run a PHP website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published