nodesource / ansible-nodejs-role

Ansible Role for Node.js Binary Install
MIT License
131 stars 47 forks source link

This role is unusable with 5.x #28

Closed emanuelis closed 7 years ago

emanuelis commented 8 years ago

:(

wolfeidau commented 8 years ago

Can you elaborate?

emanuelis commented 8 years ago

debian_repo_version: "{{ nodejs_version if '4' not in nodejs_version else '4.x' }}"

"5.x" is unsupported in this ansible role.

nbering commented 8 years ago

I got it working like this:

---
- name: Node Test Role
  hosts: all
  become: yes
  become_method: sudo
  roles:
  - { role: nodesource.node, nodejs_version: "6", debian_repo_version: "6.x" }
jquatier commented 7 years ago

Would be great if #21 was merged, or a similar fix made. This was confusing to figure out but @nbering's method works for me. Maybe just update the README?

chrislea commented 7 years ago

The 5.x line is no longer supported folks. So you should immediately be moving to 6.x, which does work as noted.

stvnwrgs commented 7 years ago

Does not work for me:

  - role: nodesource.node
    nodejs_version: "6"
    debian_repo_version: "6.x"

fatal: [s-tracking-persister-ch-1.cc.stylelounge.ninja]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "apt_repository"}, "module_stderr": "", "module_stdout": "\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_9yJQKU/ansible_module_apt_repository.py\", line 522, in <module>\r\n    main()\r\n  File \"/tmp/ansible_9yJQKU/ansible_module_apt_repository.py\", line 512, in main\r\n    cache.update()\r\n  File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 440, in update\r\n    raise FetchFailedException(e)\r\napt.cache.FetchFailedException: W:Failed to fetch https://deb.nodesource.com/node_6/dists/trusty/main/source/Sources  HttpError404\r\n, W:Failed to fetch https://deb.nodesource.com/node_6/dists/trusty/main/binary-amd64/Packages  HttpError404\r\n, E:Some index files failed to download. They have been ignored, or old ones used instead.\r\n", "msg": "MODULE FAILURE", "parsed": false}
fatal: [s-tracking-persister-fr-1.cc.stylelounge.ninja]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "apt_repository"}, "module_stderr": "", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_e7iAeC/ansible_module_apt_repository.py\", line 522, in <module>\r\n    main()\r\n  File \"/tmp/ansible_e7iAeC/ansible_module_apt_repository.py\", line 512, in main\r\n    cache.update()\r\n  File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 440, in update\r\n    raise FetchFailedException(e)\r\napt.cache.FetchFailedException: W:Failed to fetch https://deb.nodesource.com/node_6/dists/trusty/main/source/Sources  HttpError404\r\n, W:Failed to fetch https://deb.nodesource.com/node_6/dists/trusty/main/binary-amd64/Packages  HttpError404\r\n, E:Some index files failed to download. They have been ignored, or old ones used instead.\r\n", "msg": "MODULE FAILURE", "parsed": false}