Fix nodejs installation issues.
This commit is contained in:
parent
ac3ddb3ee0
commit
54883a744d
|
@ -6,12 +6,18 @@
|
||||||
- npm
|
- npm
|
||||||
- git
|
- 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
|
- name: link nodejs binary correctly
|
||||||
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
||||||
|
when: nodejs_bin.exists
|
||||||
|
|
||||||
- name: install coffeescript + less dependencies
|
- name: install coffeescript + less dependencies
|
||||||
npm: name={{ item }} global=yes state=present
|
npm: name={{ item }} global=yes state=present
|
||||||
with_items:
|
with_items:
|
||||||
- coffee-script
|
- coffee-script
|
||||||
- less
|
- less
|
||||||
|
- browserify
|
||||||
- bower
|
- bower
|
||||||
|
|
Loading…
Reference in New Issue