A small Rails/Sinatra/rack-ready playbook for Ansible
It installs:- nginx
- Puma (jungle)
- Ruby 2.0.0-p247
- PostgreSQL
- memcached
- Redis (for Sidekiq)
vars/defaults.yml
.To run:
$ ansible-playbook ruby-webapp.yml
from https://github.com/dodecaphonic/ansible-rails-app
-------------------------------------
A small Rails server playbook for Ansible
Bastardised from https://github.com/dodecaphonic/ansible-rails-appIt installs:
- Ruby 2.1
- PostgreSQL
- nginx
- Puma (jungle)
- Change the app name and deploy directory in
vars/defaults.yml
. - Rename
hosts.example
tohosts
and change it to your hosts.
$ ansible-playbook -i hosts ruby-webapp.yml -t deploy,postgresql,nginx
$ <deploy your app>
$ ansible-playbook -i hosts ruby-webapp.yml -t puma
There is an example Capistrano deploy.rb
in this repository that you can use too.from https://github.com/radar/ansible-rails-app