geerlingguy / ansible-role-nodejs

Ansible Role - Node.js

Home Page:https://galaxy.ansible.com/geerlingguy/nodejs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new LTS

tychay opened this issue · comments

Current LTS is 8.x, not 6.x. So #58 rears its ugly head.

I have a suggestion. Add a symbol and make it the defaults/main.yml

---
# Set to the current LTS version
nodejs_lts_version: "8.x"

# Set the version of Node.js to install ("0.12", "4.x", "5.x", "6.x", "8.x", "9.x").
# Version numbers from Nodesource: https://github.com/nodesource/distributions
nodejs_version: "{{ nodejs_lts_version }}"

or somesuch. (Also need to update readme.)

Also, 10.x is now LTS according to the Node.js download page. Sheesh, things move fast!

Note that the current default is 8.x: https://github.com/geerlingguy/ansible-role-nodejs/blob/master/defaults/main.yml#L4