Ansible hanging on the first npm update

58 views
Skip to first unread message

an...@octonius.com

unread,
Nov 28, 2015, 10:55:42 PM11/28/15
to Ansible Project
Hi,

the first time i run this ansible task in the playbook it hangs. I have to go and ssh into the server run npm install manually and after that it works smoothly. Any workaround to get this working?

- name: install repo packages
  become: yes
  become_user: deploy
  npm: path={{ app_repo_path }} state=present

app_repo_path: /var/www/myapp

A few more details would be
ansible version - 1.9.4
The cloud I'm deploying to is Rackspace

I have tried putting different values to poll and async, but its still the same.

Is there any workaround to this? Does anybody use ansible to deploy their node apps in production(using the ansible npm module instead of shell)? If so can anybody share a bit of code to help me through?

Thanks in advance,
Reply all
Reply to author
Forward
0 new messages