Set up directory structure and a common role as well as a developer-machine role
This commit is contained in:
25
roles/developer-machine/tasks/main.yml
Normal file
25
roles/developer-machine/tasks/main.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# This playbook contains plays that will run on developer-machines
|
||||
|
||||
- name: Is rvm installed
|
||||
shell: which rvm
|
||||
register: rvm_installed
|
||||
|
||||
- name: Install rvm key
|
||||
shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
||||
when: rvm_installed is none
|
||||
|
||||
- name: Install rvm and latest ruby
|
||||
shell: \curl -sSL https://get.rvm.io | bash -s stable
|
||||
when: rvm_installed is none
|
||||
|
||||
- name: Is heroku installed
|
||||
shell: which heroku
|
||||
register: heroku_installed
|
||||
|
||||
- name: Install heroku toolbelt
|
||||
shell: wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||
when: heroku_installed is none
|
||||
|
||||
- name: Install siege
|
||||
apt: name=siege state=present
|
||||
Reference in New Issue
Block a user