diff --git a/README.md b/README.md index 8406769e1..9f74d8626 100644 --- a/README.md +++ b/README.md @@ -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' diff --git a/defaults/main.yml b/defaults/main.yml index b33c80d19..baf30be90 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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' diff --git a/tasks/rubies.yml b/tasks/rubies.yml index 9eb7ad98c..a8b82d5b3 100644 --- a/tasks/rubies.yml +++ b/tasks/rubies.yml @@ -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 }}'