Currently the retry mechanism is an inventory file, so likely not.

The mechanism suggested before is a "force handlers" flag to be used with
the option.

--Michael


On Sat, Feb 8, 2014 at 7:36 PM, Brent Langston <[email protected]>wrote:

> What if you just abort the remaining tasks, and still run the handlers
> that have already been set on that run?
>
> --------
> Brent
> --------
>
>
> On Sat, Feb 8, 2014 at 7:34 PM, James Martin <[email protected]> wrote:
>
>> I wonder if ansible's retry feature could be made smart enough to note
>> the handlers that were notified but not executed.  Then on the subsequent
>> run, those handlers would get executed.
>>
>> - James
>>
>>
>> On Fri, Feb 7, 2014 at 12:51 PM, Nadav Samet <[email protected]> wrote:
>>
>>> Hey,
>>>
>>> I have a play where I make edits to apache configs which includes a
>>> notify "restart apache". That all works well, except in the following
>>> scenario:
>>>
>>> 1. Task A changes apache configs. Task B runs after task A fails and the
>>> play aborts. Apache still runs the old version of the config file.
>>>
>>> 2. I re-run the playbook, now task A skips since there's nothing to
>>> change and Apache does not get restarted. The play finishes successfully
>>> but Apache never got restarted.
>>>
>>> One path to go is to immediately restart apache, but that would lead to
>>> multiple restarts per run. Any ideas?
>>>
>>> -Nadav
>>>
>>> --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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