Skip to content

Commit

Permalink
Merge pull request #1 from MiLk/fixes/remove-sudo
Browse files Browse the repository at this point in the history
The sudo parameter should be directly specified in the playbook
  • Loading branch information
MiLk committed Feb 12, 2015
2 parents 57a94d9 + c26a655 commit a420abf
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
rvm:
url: https://get.rvm.io
temp_installer_path: /root/rvm-installer.sh
temp_installer_path: /tmp/rvm-installer.sh

root: /usr/local/rvm
init_script: /etc/profile.d/rvm.sh
Expand Down
1 change: 0 additions & 1 deletion tasks/install_rvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@

- name: setting RVM autolibs on
command: "{{rvm.root}}/bin/rvm autolibs 3"
sudo: "{{ sudo }}"
1 change: 0 additions & 1 deletion tasks/receive_key.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
- name: receiving key
shell: "gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3"
sudo: "{{ sudo }}"
1 change: 0 additions & 1 deletion tasks/select_ruby.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
- name: setting default Ruby version
shell: "source {{rvm.init_script}} && rvm use {{rvm.default_ruby_version}} --default executable=/bin/bash"
sudo: "{{ sudo }}"
register: rvm_select_ruby_version
ignore_errors: True
changed_when: False
1 change: 0 additions & 1 deletion tasks/update_rvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@

- name: updating RVM
shell: "source {{rvm.init_script}} && rvm get stable executable=/bin/bash"
sudo: "{{ sudo }}"

0 comments on commit a420abf

Please sign in to comment.