For installing Nodenv and multiple NodeJS versions via Ansible.
Also installs:
Can also globally install NPM packages for each installed NodeJS version.
(barely) tested on Ubuntu 14.04 (trusty) and above (currently to 18.04 bionic).
Defaults found in default/main.yml
:
node_versions:
- "7.6.0"
- "8.13.0"
An array list of all nodeJS versions to be installed.
node_default: "7.6.0"
The default version of nodeJS to be used if no local version set in .node-version
.
npm_defaults:
- "grunt-cli"
- "gulp-cli"
- "bower"
An array list of all NPM modules to be installed globally. Modules are installed for all nodeJS versions.
MIT
This role was created in 2017 by Richard Chapman.