Role to install nvm and multiple nodejs versions.
Tested with Ansible 2.0.0.2.
---
# This could be set to 'user' to support user installs.
nvm_env: system
nvm_version: v0.31.6
# This sets the nvm global nodejs version.
nvm_default_node_version: stable
# List of nodejs versions to install.
nvm_node_versions:
- stable
# List of default packages to install on each nodejs version.
nvm_global_packages: []
# List of users to install nvm and nodejs versions to.
# Ignored if nvm_env is set to 'system'
nvm_users: []
- ANXS.git
- hosts: js
roles:
- pablocrivella.nvm
For a more detailed example check this Playbook.
MIT
Pablo Crivella.