Install nvm and Node.js.
This role is an extension of ahmednuaman/ansible-nvm
$ ansible-galaxy install gvillalta99.nvm
On Fedora:
- git
- gcc
- gcc-c++
- make
- openssl-devel
- libselinux-python
On Ubuntu:
- git
- curl
- build-essential
- libssl-dev
- hosts: servers
roles:
- role: nvm
nvm:
default_node_version: "0.12"
node_versions:
- '0.12.2'
- '0.11'
- '0.10'
- iojs
packages:
- grunt-cli
- bower
- yo
path: "~/.nvm"
profile_file: "~/.zshrc"
version: 'v0.20.0'
- Tested on Fedora 21
- Tested on Ubuntu 14.04 (Trusty)
BSD