ansible-rookeries/tasks/nodejs.yaml

24 lines
561 B
YAML
Raw Normal View History

---
- name: install nodejs + npm dependencies
apt: pkg={{ item }} state=present
with_items:
- nodejs
- npm
- git
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
- 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
- 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
- bower