From 8be4a9bd106b2e2fb8046a2333835604ecb4ee9e Mon Sep 17 00:00:00 2001 From: Edmond Lafay Date: Mon, 2 May 2016 14:55:37 +0200 Subject: [PATCH] Change alert to warning when installing a missing node version --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index bfa94c5..251c917 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -33,10 +33,10 @@ shell: sudo -iu {{ nvm.user }} nvm ls | grep -e 'default -> {{ nvm.node_version }}' register: nvm_check_default changed_when: False - ignore_errors: True + failed_when: False tags: nvm - name: Set default node version to {{ nvm.node_version }} command: sudo -iu {{ nvm.user }} nvm alias default {{ nvm.node_version }} - when: nvm_check_default|failed + when: nvm_check_default.rc != 0 tags: nvm