Skip to content

Instantly share code, notes, and snippets.

@bthompson-nd
Created February 29, 2016 21:41
Show Gist options
  • Select an option

  • Save bthompson-nd/2b1fb9a39cf4958559c7 to your computer and use it in GitHub Desktop.

Select an option

Save bthompson-nd/2b1fb9a39cf4958559c7 to your computer and use it in GitHub Desktop.
---
- hosts: webservers
sudo: yes
vars:
http_port: 80
remote_user: vagrant
roles:
- { role: rvm_io.rvm1-ruby, tags: ruby, sudo: True }
tasks:
- name: install epel
yum: name=epel-release state=latest
- name: install latest nginx
yum: name=nginx state=latest
- name: install latest postgres
yum: name=postgresql-server state=latest
- name: Put user in the rvm group
shell: usermod {{ ansible_ssh_user }} -G rvm
- name: Enable nginx (http server)
shell: systemctl enable nginx.service
- name: Enable postgresql (sql server)
shell: systemctl enable postgresql.service
- name: install unicorn
sudo: no
shell: gem install unicorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment