Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-24 Thread Tony Marin
I use a screen trick but mostly useful when using commands modules. Anyway, if it hangs doing apt upgrade, the behavior should be the same if your run it as a command. - debug: msg=Please, connect to {{ inventory_hostname }}, screen -r, and respond the possible questions. when:

Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-24 Thread Karl E. Jorgensen
Hi On Tue, Jul 22, 2014 at 02:41:53PM -0700, Michael Palumbo wrote: So there is no solution to avoid being stuck on the following? It happens to me often when I am upgrading the system! - name: upgrade all safe packages sudo: yes apt: upgrade=safe Is there at least a way to see the

Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-23 Thread Michael DeHaan
When you kill a playbook you can use --force-handlers to make sure handlers on a repeated runs. On Tue, Jul 22, 2014 at 5:41 PM, Michael Palumbo michael.palumb...@gmail.com wrote: So there is no solution to avoid being stuck on the following? It happens to me often when I am upgrading the

Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-23 Thread Michael Palumbo
Does that also work when one task fails and the playbook stops? Does it work with the tasks of the roles as well? On Wed, Jul 23, 2014 at 8:30 AM, Michael DeHaan mich...@ansible.com wrote: When you kill a playbook you can use --force-handlers to make sure handlers on a repeated runs. On

Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-23 Thread Michael DeHaan
This is a misunderstanding of force-handler behavior. You would run-it again with --force-handlers, and any handlers would run, whether notified or not. Don't control-C the second run :) On Wed, Jul 23, 2014 at 1:20 PM, Michael Palumbo michael.palumb...@gmail.com wrote: I just tried to

[ansible-project] Re: How to detect why Ansible playbook hangs during execution

2014-07-11 Thread Michael Palumbo
What is the parameter of the apt module to use to avoid that? I run the following and it hangs... - name: update APT package cache sudo: yes apt: update_cache=yes - name: upgrade all safe packages sudo: yes apt: upgrade=safe Thanks -- You received this message because you are subscribed to

[ansible-project] Re: How to detect why Ansible playbook hangs during execution

2013-12-29 Thread 9devmail
Thanks for answer. However, apt is not the only task that hangs without ANY information why. Another example: shell: apt-get install --no-install-recommends virtualbox-guest-utils sudo apt-get install virtualbox-guest-dkms Should I always use your apt module? Why can't I just execute simple

Re: [ansible-project] Re: How to detect why Ansible playbook hangs during execution

2013-12-29 Thread Brian Coca
you can execute shell commands, just not ones that expect interactivity as they hold the tty (this happens with any background ssh execution). for apt commands, yes use the apt module, it takes care of 99% f these issues. -- You received this message because you are subscribed to the Google

[ansible-project] Re: How to detect why Ansible playbook hangs during execution

2013-12-29 Thread 9devmail
Thank you for your answers. I will use your apt module. But just for the record - I always rollback to fresh virtual machine, so the reason for hanging is not double task execution for sure. -- You received this message because you are subscribed to the Google Groups Ansible Project group.