Skip to content

Commit

Permalink
Merge pull request #30 from mikechau/feature/ruby-install-flags
Browse files Browse the repository at this point in the history
Add option for passing ruby install flags
  • Loading branch information
nickjj committed Jan 29, 2015
2 parents fdf8507 + f4081f0 commit 52e8a7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ rvm1_install_path: '/usr/local/rvm'
# make sure you ADD the --user-install flag below
rvm1_install_flags: '--auto-dotfiles'
# Add additional ruby install flags
rvm1_ruby_install_flags:
# Set the owner for the rvm directory
rvm1_user: 'root'
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ rvm1_install_path: '/usr/local/rvm'
# make sure you ADD the --user-install flag below
rvm1_install_flags: '--auto-dotfiles'

# Add additional ruby install flags
rvm1_ruby_install_flags:

# Set the owner for the rvm directory
rvm1_user: 'root'

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

- name: Install rubies
command: '{{ rvm1_rvm }} install {{ item.item }}'
command: '{{ rvm1_rvm }} install {{ item.item }} {{ rvm1_ruby_install_flags }}'
when: rvm1_rubies and item.rc != 0
with_items: detect_rubies.results
sudo_user: '{{ rvm1_user }}'
Expand Down

0 comments on commit 52e8a7a

Please sign in to comment.