Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render nodejs_global_packages var #37

Merged
merged 1 commit into from
Apr 7, 2017
Merged

render nodejs_global_packages var #37

merged 1 commit into from
Apr 7, 2017

Conversation

brad
Copy link
Member

@brad brad commented Apr 6, 2017

@AnsibleShipyard/developers My team is updating to Ansible 2 and we ran into an issue with this task where nodejs_global_packages was getting interpreted literally:

TASK [galaxy/JasonGiedymin.nodejs : NPM Install global packages] ***************
failed: [vagrant_web1] (item=nodejs_global_packages) => {"cmd": "/usr//bin/npm install --global nodejs_global_packages", "failed": true, "item": "nodejs_global_packages", "msg": "npm ERR! 404 Not Found\nnpm ERR! 404 \nnpm ERR! 404 'nodejs_global_packages' is not in the npm registry.\nnpm ERR! 404 You should bug the author to publish it\nnpm ERR! 404 \nnpm ERR! 404 Note that you can also install from a\nnpm ERR! 404 tarball, folder, or http url, or git url.\n\nnpm ERR! System Linux 2.6.32-431.el6.x86_64\nnpm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--global" "nodejs_global_packages"\nnpm ERR! cwd /home/vagrant\nnpm ERR! node -v v0.10.36\nnpm ERR! npm -v 1.4.28\nnpm ERR! code E404\nnpm ERR! \nnpm ERR! Additional logging details can be found in:\nnpm ERR! /home/vagrant/npm-debug.log\nnpm ERR! not ok code 0", "rc": 1, "stderr": "npm ERR! 404 Not Found\nnpm ERR! 404 \nnpm ERR! 404 'nodejs_global_packages' is not in the npm registry.\nnpm ERR! 404 You should bug the author to publish it\nnpm ERR! 404 \nnpm ERR! 404 Note that you can also install from a\nnpm ERR! 404 tarball, folder, or http url, or git url.\n\nnpm ERR! System Linux 2.6.32-431.el6.x86_64\nnpm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--global" "nodejs_global_packages"\nnpm ERR! cwd /home/vagrant\nnpm ERR! node -v v0.10.36\nnpm ERR! npm -v 1.4.28\nnpm ERR! code E404\nnpm ERR! \nnpm ERR! Additional logging details can be found in:\nnpm ERR! /home/vagrant/npm-debug.log\nnpm ERR! not ok code 0\n", "stdout": "", "stdout_lines": []}

Wrapping it in a template expression as the docs recommend fixes the issue

@ernestas-poskus
Copy link
Member

Thank you for contribution.

@ernestas-poskus ernestas-poskus merged commit 9cd49ee into master Apr 7, 2017
@ernestas-poskus ernestas-poskus deleted the ansible-2 branch April 7, 2017 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants