This Ansible role is a rework of leonidas' ansible-nvm, with compatibility with Ansible 2.0+
Install nvm and Node.js.
git, curl, build-essential, libssl-dev. Requirements are installed by the role.
nvm.user
Remote user. Defaults to ansibleremote_user
.nvm.version
nvm version tag, orHEAD
. Defaults tov0.31.0
nvm.node_version
Node.js version. Defaults to'v4.4.3'
No depedencies.
- hosts: servers
roles:
- role: nvm
nvm:
user: node
version: v0.31.0
node_version: v4.4.3