Skip to content
Provisioning for DigitalOcean's Debian 8.2 Droplet with Ansible
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
callback_plugins
roles
.gitignore
.gitmodules
LICENSE
README.md
Vagrantfile
ansible.cfg
playbook.yml
vagrant-playbook.yml

README.md

DebianDroplet

Introduction

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:

  • PHP7
  • MySQL
  • Nginx
  • Munin
  • Composer
  • ...

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 git@github.com:KrunoKnego/DebianDroplet.git

Initialize & update git submodules git submodule init && git submodule update

Execute the playbook by running ansible-playbook playbook.yml

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 vagrant up.

After your machine finished with provisioning run vagrant ssh. Go to the /vagrant directory and there execute ant setup-droplet. 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.

You can’t perform that action at this time.