Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.14 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.14 KB

Nodenv Ansible Role

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).

Variables

Defaults found in default/main.yml:

NodeJS versions

node_versions:
  - "7.6.0"
  - "8.13.0"

An array list of all nodeJS versions to be installed.

Default NodeJS version

node_default: "7.6.0"

The default version of nodeJS to be used if no local version set in .node-version.

Global NPM packages

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.

License

MIT

Author Information

This role was created in 2017 by Richard Chapman.