This project contains an Ansible playbook used for provisioning an Ubuntu 14.04 LTS server with the following characteristics:
- NGINX as the web server
- PostgreSQL as the DB engine.
- Mailgun as the email service provider.
- Upstart service for keeping the blog up and running.
- HTTPS/SSL configuration ready to go.
These instructions will get you a deployable Ansible playbook that you can easily use for provisioning any Ubuntu server.
You must have Ansible installed in your computer as well as an Ubuntu 14.04 LTS server with ssh public authentication enabled on it. You can easily create a public virtual server on any of the following services:
If you don't want to spend any cent by using this playbook, you can test it using a virtual machine. We've used a Vagrant for the testing and development of this playbook, this is how our Vagrantfile looks like:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "public_network"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
end
You can get yours by simply running vagrant up
after creating you Vagrantfile:
- Set up your inventory
by creating a file name
inventory
(without any extension) in the root of the project. i.e:
[default]
10.15.42.4
10.15.42.3
...
- Make the play file an executable one:
chmod +x play
- Set up the variables
- Run:
./play
Please refer to the vars section for more information.
- nodesource.node - NodeJS installation role
This is what we use internally. It might not be what you want.
This project is licensed under the MIT License - see the LICENSE file for details
-
Multiple DB engines support:
- MySQL
- sqlite3
-
Let's encrypt integration for valid SSL certificates generation.