Skip to content

Instantly share code, notes, and snippets.

@kitplummer
Created December 30, 2014 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitplummer/d5520fe8fe166caee625 to your computer and use it in GitHub Desktop.
Save kitplummer/d5520fe8fe166caee625 to your computer and use it in GitHub Desktop.
---
- hosts: all
remote_user: vagrant
sudo: yes
pre_tasks:
- name: add git-core repo
apt_repository: repo='ppa:git-core/ppa'
- name: ensure curl is installed
apt: name=curl
- name: ensure git is installed
apt: name=git update_cache=yes
- name: ensure mysql-client is installed
apt: name=mysql-client
roles:
- { role: rvm_io.rvm1-ruby, sudo: True, tags: ruby,
rvm1_install_flags: '--auto-dotfiles --user-install',
rvm1_install_path: '/home/{{ansible_ssh_user}}/.rvm' }
tasks:
- name: copy and place template gitconfig file
copy: src=gitconfig.template dest=/home/vagrant/.gitconfig owner=vagrant
- name: set perms on the clone
shell: chown -R vagrant.vagrant /home/vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment