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 <
[email protected]> 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 progress? Looking at some logs on the
> machine?
>
> The state of my machine is messy when this task is stuck because I have to
> stop ansible-playbook with CTRL+C and all the handlers are not notified...
> :-/
>
>
>
> Le vendredi 11 juillet 2014 17:30:35 UTC-5, Michael DeHaan a écrit :
>>
>> apt should never need a parameter to not hang, however some *specific*
>> packages can sometimes be poorly coded.
>>
>> Not saying that's the case here.
>>
>> I'd first check your ansible version and then file a bug with steps to
>> reproduce.
>>
>>
>> On Thu, Jul 10, 2014 at 7:45 PM, Michael Palumbo <[email protected]>
>> wrote:
>>
>>> 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 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].
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/ansible-project/d0595406-cff0-441d-98b3-
>>> a79b8f19b5de%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/d0595406-cff0-441d-98b3-a79b8f19b5de%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e8099617-0b3f-4ba5-8698-235976cf7194%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e8099617-0b3f-4ba5-8698-235976cf7194%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwFr%3DTTP8Kw6CR0Dph_SyTZbLVdX6GserpfodmZ%3Dnf%2BOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to