From 54883a744d22420fb8266d5a92b0060cfaf1c1ab Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Wed, 13 May 2015 09:41:51 -0400 Subject: [PATCH] Fix nodejs installation issues. --- tasks/nodejs.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/nodejs.yaml b/tasks/nodejs.yaml index 835cb86..c40ff79 100644 --- a/tasks/nodejs.yaml +++ b/tasks/nodejs.yaml @@ -6,12 +6,18 @@ - npm - git +- name: check if nodejs binary exists and needs linking to node binary + stat: path=/usr/bin/nodejs + register: nodejs_bin + - name: link nodejs binary correctly file: src=/usr/bin/nodejs dest=/usr/bin/node state=link + when: nodejs_bin.exists - name: install coffeescript + less dependencies npm: name={{ item }} global=yes state=present with_items: - coffee-script - less + - browserify - bower