24 lines
561 B
YAML
24 lines
561 B
YAML
---
|
|
- name: install nodejs + npm dependencies
|
|
apt: pkg={{ item }} state=present
|
|
with_items:
|
|
- nodejs
|
|
- 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
|