Ansible gets stuck during first npm install

523 views
Skip to first unread message

an...@octonius.com

unread,
Nov 28, 2015, 10:55:51 PM11/28/15
to Ansible Project
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,

Pablo Farías Navarro

unread,
Feb 29, 2016, 11:21:17 AM2/29/16
to Ansible Project
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

owen.g...@clock.co.uk

unread,
Apr 4, 2016, 9:05:16 AM4/4/16
to Ansible Project
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


Reply all
Reply to author
Forward
0 new messages