This role installs Node.js using NodeSource repositories.
nodejs_major_version
: Major version to install (default: '5')nodejs_minor_version
: Minor version and revision (e.g. '9.0') to install. If not set, latest package is installed (default: '')
- hosts: servers
roles:
- {
role: nodejs,
nodejs_minor_version: '9.0'
}
MIT