From fa98f34cbdc815352eb21dddf60da5a81bd08094 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Tue, 29 Nov 2016 22:39:23 +0100 Subject: [PATCH] Add support for version 7 And make version 6 the default version --- README.md | 2 +- defaults/main.yml | 2 +- vars/main.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1cd9a02..949bbba 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Set up the latest version of nodejs and npm in Debian-like systems. #### Variables -* `nodejs_version` [default: `nodejs-v4x`]: Version to install (e.g. `nodejs-v6x`, `nodejs-v5x`, `nodejs-v012`, `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`) +* `nodejs_version` [default: `nodejs-v6x`]: Version to install (e.g. `nodejs-v7x`, `nodejs-v6x`, `nodejs-v5x`, `nodejs-v012`, `nodejs-v010`, `iojs-v3x`, `iojs-v2x`, `iojs-v1x`) * `nodejs_install` [default: `[build-essential]`]: Packages to install * `nodejs_npm_packages` [default: `[]`]: Node.js packages to install (globally) diff --git a/defaults/main.yml b/defaults/main.yml index cdcf5b1..bd0d66b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,6 @@ # defaults file for nodejs --- -nodejs_version: 'nodejs-v4x' +nodejs_version: 'nodejs-v6x' nodejs_install: # To compile and install native addons from npm you may also need to install build tools diff --git a/vars/main.yml b/vars/main.yml index a0e0f7c..284f92f 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,6 +1,7 @@ # vars file for nodejs --- nodejs_version_map: + nodejs-v7x: '7.x' nodejs-v6x: '6.x' nodejs-v5x: '5.x' nodejs-v4x: '4.x'