Skip to content

Commit

Permalink
prevent failing on npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
fubarhouse committed Nov 21, 2016
1 parent 24267c4 commit d23b100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d23b100

Please sign in to comment.