I just tried to run my playbook with --force-handlers and did CTRL+C: it stopped it right away and the handlers were not notified. Does it work for you? I use ansible 1.6.7
Thanks. On Wed, Jul 23, 2014 at 9:53 AM, Michael Palumbo < [email protected]> wrote: > 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 <[email protected]> > wrote: > >> 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 a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/mm99yAPVrfc/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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 >> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwFr%3DTTP8Kw6CR0Dph_SyTZbLVdX6GserpfodmZ%3Dnf%2BOw%40mail.gmail.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/CALa-rByeCF-8-eO%2BKeLe%3DS75ZJ%3Dx%2B73nL1xT%2BQ7kri%3D%2BzWW7%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
