Heh, yeah, guessing how long it takes to restart is not ideal. It's just what I was thinking of as a work around that properly tweaked would avoid clobbering the cluster.
The more I think about it, the more I'm not sure there's a good way to do this in Ansible. For Elasticsearch, I'd want to issue a command like 'service elasticsearch safe-restart' that waits for the status of the cluster to be green before restarting. For RabbitMQ, I'd want something similar, though I haven't worked with it enough to know exaction what. I think I'll head off to the elasticsearch group and Google to see how others have avoided clobbering their clusters when updating config. :) Thanks for all the responses so far. --David Reagan On Thu, Jul 24, 2014 at 11:05 AM, Michael Peters <michael00pet...@gmail.com> wrote: > On Thu, Jul 24, 2014 at 11:54 AM, David Reagan <jer...@gmail.com> wrote: > > > So, handlers seem like they are just special tasks that you can call with > > the "notify" option. If that's the case, couldn't I just make a handler > that > > uses the at module instead of the service module? Actually, I think I've > > done that already in a differen role.. Hmm... > > The problem with at is that you have to manually figure out how long > something should take and hope it never takes over that and then try > to randomize how quickly how many servers restart. > Or you leave a lot of time between which makes it inefficient. > > Just saying it would be nice if we could already leverage all of the > power of serial (including all of the niceties like > max_fail_percentage). > > -- > 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/SBo2dPYNuGI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAJQqANe0znq%2BT-Sx8LdXpP7m8EXctSvp5%3DcN1qLdjEXG%2BzHi4w%40mail.gmail.com > . > 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CANo%2B_Ac6QDQGiS7vGasc1YZc2hgUHZFB8dnyHWX%2B-8VcJ0DtWA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.