I'm trying to convert another's ansible example 
(http://mattupstate.com/python/devops/2012/08/07/flask-wsgi-application-deployment-with-ubuntu-ansible-nginx-supervisor-and-uwsgi.html#playbooks-explained)
 
to work in a vagrant vm cluster so everything is completely reproducible 
(https://github.com/cpdean/ansible-playground)

I have a couple of tasks to install the git-core and python-dev packages

- name: install git
  apt: pkg=git-core state=installed

- name: install python
  apt: pkg=python-dev state=installed

the python installation always hangs, where the git installation passes.

Running `sudo apt-get install` on the target machine succeeds without any 
prompts when installing git-core, but stops and has a prompt with 
python-dev, there are additional packages that need to be installed, and 
additional packages must be upgraded as well.

This is the only related thing I can think of for why the task would hang. 
 When running apt-get directly on the target, I can get it to pass without 
prompt with the -y flag or by copy-pasting all the additional packages that 
must be installed or upgraded into the command. 

But, pasting all these additional packages into the task (in the form of 
with_items) does not seem to prevent it from hanging.

What can I do to further debug this? 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to