Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.26 KB

README.md

File metadata and controls

63 lines (41 loc) · 1.26 KB

Ansible Role: NVM

Build Status Ansible Galaxy

Role to install nvm and multiple nodejs versions.

Requirements

Tested with Ansible 2.0.0.2.

Role Variables

---
# 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: []

Dependencies

  • ANXS.git

Example Playbook

- hosts: js
  roles:
    - pablocrivella.nvm

For a more detailed example check this Playbook.

License

MIT

Author Information

Pablo Crivella.

Contributors