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

Support for Node 10

dachinat opened this issue · comments

I have changed

- name: Ensure Node.js and npm are installed.
  yum: "name=nodejs-{{ nodejs_version[0] }}.* state=present enablerepo='epel,nodesource'"

this to

- name: Ensure Node.js and npm are installed.
  yum: "name=nodejs-{{ nodejs_version.split('.')[0] }}.* state=present enablerepo='epel,nodesource'"

or it was picking '1' from '10.x'

I can confirm the same issue with Node 10.x

TASK [geerlingguy.nodejs : Ensure Node.js and npm are installed.] ********************************************************************************************************************************************************************************* fatal: [fmccv2]: FAILED! => {"changed": false, "msg": "No package matching 'nodejs-1.*' found available, installed or updated", "rc": 126, "results": ["No package matching 'nodejs-1.*' found available, installed or updated"]}

This was fixed via #80. Thanks for reporting!