Ansible gets stuck during first npm install

Hi,

Ansible gets stuck during execution of this task

  • name: install repo packages

become: yes

become_user: deploy

npm: path={{ app_repo_path }} state=present

app_repo_path = /var/www/myApp

I’m using ansible version 1.9.4. And deploying to rackspace servers.

For the first time it hangs and I have to ssh into the server and run npm install manually. Is there a workaround to this? Are there anybody out there using ansible for production in deploying nodejs apps using ansible npm module?
I also face other issues while doing bower install which initially failed as root user cannot install bower packages and many times connection times out in the server while installing thus the task fails. It would be great to know how people handle these issues.

Thanks in advance,

I have the exact same problem.

Doing:

  • name: update node packages
    npm: path=/my-path

Makes the playbook get stuck, so I have to manually ssh and do npm install :s

I have ran into this problem too, here is my task:

  • name: Install doorman
    npm: name=doorman-proxy version=0.4.1 global=yes
    tags: doorman