Installs node and npm on RHEL 6/CentOS 6/Ubuntu 12.04 via standard packaging mechanisms - Chris Lea's PPA on Debian and the EPEL repository on RHEL/CentOS.
Can also install a set of global npm packages.
Adheres to semantic versioning (http://semver.org/) - you are advised to install / depend on a major version number to avoid breaking changes.
Credits: I initially developed this in isolation, but later took some inspiration from https://github.com/bcen/ansible-nodejs and bennojoy/openldap_server.
None.
nodejs_global_packages: [ ] # Packages to install globally
- hosts: all
roles:
- role: mjmaisey.nodejs
nodejs_global_packages:
- underscore
- async
- grunt
- role: mjmaisey.nodejs
nodejs_global_packages:
- Uses goozbach.EPEL on RHEL/CentOS to install the EPEL repo
- Uses cederberg.bootstrap-debian to install essential Ubuntu packages
Apache v2