Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ The location where temporary files will be downloaded in preparation for Ruby in

Whether this role should install [Bundler](http://bundler.io/).

ruby_bundler_version: 2.0.1

The version of Bundler that will be installed.

ruby_install_gems: []

A list of Ruby gems to install (just the name of the gem to be installed). This is meant as a simple convenience, and will only install the latest version of the gem. If you need to install gems with more options or specificity, you can do so elsewhere in your playbook.
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ workspace: /root

# Whether this role should install Bundler.
ruby_install_bundler: true

ruby_bundler_version: 2.0.1
# A list of Ruby gems to install.
ruby_install_gems: []

Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# Install Bundler and configured gems.
- name: Install Bundler.
gem: name=bundler state=present user_install=no
gem: name=bundler state=present version={{ ruby_bundler_version }} user_install=no
when: ruby_install_bundler

- name: Install configured gems.
Expand Down