From c26a655e9115368f716f596cff5a616e38fac689 Mon Sep 17 00:00:00 2001 From: Emilien Kenler Date: Thu, 12 Feb 2015 11:35:39 +0900 Subject: [PATCH] The sudo parameter should be directly specified in the playbook --- defaults/main.yml | 2 +- tasks/install_rvm.yml | 1 - tasks/receive_key.yml | 1 - tasks/select_ruby.yml | 1 - tasks/update_rvm.yml | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 525bed5..9fff4ec 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/install_rvm.yml b/tasks/install_rvm.yml index c5dd20e..300ee76 100644 --- a/tasks/install_rvm.yml +++ b/tasks/install_rvm.yml @@ -21,4 +21,3 @@ - name: setting RVM autolibs on command: "{{rvm.root}}/bin/rvm autolibs 3" - sudo: "{{ sudo }}" diff --git a/tasks/receive_key.yml b/tasks/receive_key.yml index 6e6ef14..8b79f91 100644 --- a/tasks/receive_key.yml +++ b/tasks/receive_key.yml @@ -1,4 +1,3 @@ --- - name: receiving key shell: "gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3" - sudo: "{{ sudo }}" diff --git a/tasks/select_ruby.yml b/tasks/select_ruby.yml index d198b06..cdb6a4d 100644 --- a/tasks/select_ruby.yml +++ b/tasks/select_ruby.yml @@ -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 diff --git a/tasks/update_rvm.yml b/tasks/update_rvm.yml index 31e3cfa..b271862 100644 --- a/tasks/update_rvm.yml +++ b/tasks/update_rvm.yml @@ -3,4 +3,3 @@ - name: updating RVM shell: "source {{rvm.init_script}} && rvm get stable executable=/bin/bash" - sudo: "{{ sudo }}"