From d23b100107b7bf30c6c8a7cf5830c2b326db643e Mon Sep 17 00:00:00 2001 From: Karl Hepworth Date: Mon, 21 Nov 2016 16:46:34 +1100 Subject: [PATCH] prevent failing on npm config --- tasks/npm.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/npm.yml b/tasks/npm.yml index 42aad98..ac9c6db 100755 --- a/tasks/npm.yml +++ b/tasks/npm.yml @@ -13,8 +13,9 @@ become: yes become_user: "{{ fubarhouse_user }}" shell: "{{ which_npm.stdout }} config set prefix /usr/local" - when: '"npm" in "{{ which_npm.stdout }}" and ansible_ssh_user is defined and ansible_ssh_user != "travis"' + when: '"npm" in "{{ which_npm.stdout }}"' changed_when: false + failed_when: false - name: "NPM | Ensure installed and updated" become: yes