From 7827ec95e0ce4c4c16001f8c2d3e7d47b6338e62 Mon Sep 17 00:00:00 2001 From: Nick Janetakis Date: Sun, 29 Jun 2014 18:01:33 -0400 Subject: [PATCH] Make the detection tasks idempotent --- tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index a7b7d04..8a93ecd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,7 +8,8 @@ register: rvm_installer - name: detect current rvm version - shell: "{{ ruby_rvm_install_path }}/bin/rvm version" + command: "{{ ruby_rvm_install_path }}/bin/rvm version" + changed_when: false register: rvm_current_version when: rvm_binary.stat.exists @@ -55,6 +56,7 @@ - name: detect default ruby version command: "{{ ruby_rvm_install_path }}/bin/rvm alias list default" + changed_when: false register: ruby_selected - name: ensure default ruby is selected