Define these variables somewhere and let it go :
- ruby_current: the ruby version you want to deploy (e.g. "1.9.3-p374")
- ruby_user: Under which account we want ruby to be installed (e.g. "myappuser"; "ruby" in this playbook)
Note : this playbook only works with '-i' in the sudo line since it requires the target user environment to be fully loaded
In config vars somewhere. I have this in my group_vars for ubuntu machines :
ruby_deps:
- autoconf
- automake
- bison
- build-essential
- curl
- exuberant-ctags
- git-core
- libreadline6
- libreadline6-dev
- libreadline-dev
- libsqlite3-0
- libsqlite3-dev
- libssl-dev
- libncurses5-dev
- libtool
- libxml2-dev
- libxslt1-dev
- openssl
- sqlite3
- subversion
- zlib1g
- zlib1g-dev
YMMV dependng on target OS.