Ansible role which manage nodejs and npm packages.
Only tested on ubuntu for now.
nodejs_enabled: yes # The role is enabled
nodejs_repository: ppa:chris-lea/node.js # NodeJS PPA
nodejs_npm_modules: [] # List modules which will be installed
Add Stouts.nodejs
to your roles and set vars in your playbook file.
Example:
- hosts: all
roles:
- Stouts.nodejs
vars:
nodejs_npm_modules:
- bower
- jshint
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!