This project aims to effortlessly provision your DigitalOcean Debian Droplet instance. At the same time it gives you possibility to use Vagrant so you can test the changes you want to apply to your web-server locally beforehand.
Provisioning your DigitalOcean instance
Provisioning for DigitalOcean's Debian 8.2 Droplet with Ansible
This provisioning includes:
Install ansible (Instructions for Linux)
sudo apt-get install software-properties-common sudo apt-add-repository ppa:ansible/ansible sudo apt-get update sudo apt-get install ansible
Edit your /etc/ansible/hosts and add the following lines
[droplets] host1 ansible_ssh_host=YOUR_DROPLET_IP_ADDRESS
Clone this repository
git clone firstname.lastname@example.org:KrunoKnego/DebianDroplet.git
Initialize & update git submodules
git submodule init && git submodule update
Execute the playbook by running
Provisioning your local Vagrant box
If you want to test things first locally before deploying it to DigitalOcean's instance you can do that easily using vagrant.
For this step you need vagrant and vagrant-hostmanager installed on your computer. The vagrant-hostmanager plugin will automatically update your hosts file so you don't have to worry about modifying it.
Once you have installed the needed tools you can just run
After your machine finished with provisioning run
Go to the
/vagrant directory and there execute
This will run ant script which will automatically set-up your nginx configuration file.
The machine will be available at http://debian.droplet/ and hopefully if everything worked out your should see that PHP7 has been successfully installed.