2014-11-18 08:24:39 -05:00
|
|
|
---
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: install nodejs + npm dependencies
|
|
|
|
apt: pkg={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- nodejs
|
|
|
|
- npm
|
2015-02-26 08:24:52 -05:00
|
|
|
- git
|
2014-11-18 08:24:39 -05:00
|
|
|
|
2015-05-13 09:41:51 -04:00
|
|
|
- name: check if nodejs binary exists and needs linking to node binary
|
|
|
|
stat: path=/usr/bin/nodejs
|
|
|
|
register: nodejs_bin
|
|
|
|
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: link nodejs binary correctly
|
|
|
|
file: src=/usr/bin/nodejs dest=/usr/bin/node state=link
|
2015-05-13 09:41:51 -04:00
|
|
|
when: nodejs_bin.exists
|
2014-11-19 16:27:37 -05:00
|
|
|
|
2015-01-08 18:22:39 -05:00
|
|
|
- name: install coffeescript + less dependencies
|
|
|
|
npm: name={{ item }} global=yes state=present
|
|
|
|
with_items:
|
|
|
|
- coffee-script
|
|
|
|
- less
|
2015-05-13 09:41:51 -04:00
|
|
|
- browserify
|
2015-02-26 08:24:52 -05:00
|
|
|
- bower
|