Files
convert-images-for-web/roles/developer-machine/tasks/main.yml
2017-05-13 20:00:56 -04:00

66 lines
1.8 KiB
YAML

---
# This playbook contains plays that will run on developer-machines
- name: Is rvm installed
stat: path=/usr/local/rvm/bin/rvm
register: rvm_installed
- name: Install rvm key
shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
when: not rvm_installed.stat.exists
- name: Install rvm and latest ruby
shell: \curl -sSL https://get.rvm.io | bash -s stable
when: not rvm_installed.stat.exists
- name: Is heroku installed
shell: which heroku
register: heroku_installed
failed_when: "heroku_installed.rc == 2 or heroku_installed.rc == 3"
- name: Install heroku toolbelt
shell: wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
when: heroku_installed.stdout == ""
- name: Install siege
apt: name=siege state=present
- name: Install vim
apt: name=vim state=present
- name: Install tmux
apt: name=tmux state=present
- name: Install apache2-utils
apt: name=apache2-utils state=present
- name: Install xrdp
apt: name=xrdp state=present
- name: Pathogen installed
stat: path=/home/cody/.vim/autoload/pathogen.vim
register: pathogen_installed
- name: Create vim autoload directory
file: path=/home/cody/.vim/autoload state=directory
- name: Create vim bundle directory
file: path=/home/cody/.vim/bundle state=directory
- name: Install pathogen
shell: curl -LSso /home/cody/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
when: not pathogen_installed.stat.exists
- name: Replace .vimrc
template: src=../roles/developer-machine/templates/vimrc.j2 dest=/home/cody/.vimrc
- name: Nerdtree installed
stat: path=/home/cody/.vim/bundle/nerdtree
register: nerdtree_installed
- name: Install nerdtree
git: repo=https://github.com/scrooloose/nerdtree.git
dest=/home/cody/.vim/bundle/nerdtree
when: not nerdtree_installed.stat.exists