you can have more than 1 play in a playbook

- name: play1
  hosts: ...
  tasks:
     - do most of the work

- na

On Thu, Nov 12, 2015 at 2:38 AM, Rafał Radecki <[email protected]> wrote:
> Thanks for the tip. Overall serial looks good but it is usable only at the
> 'play' level. In my case I have one play which uploads a template for config
> file and does many other actions to configure the mysql cluster. I cannot
> afford setting serial=1 for the whole play and as I see in
> http://stackoverflow.com/questions/26685544/rolling-restart-with-ansible-handlers
> it is not possible to use serial for specific tasks and/or handlers only.
>
> Are there any other options?
>
>
> On Tuesday, November 10, 2015 at 7:36:06 PM UTC+1, Brian Coca wrote:
>>
>> set `serial: 1` at the play level it will force the tasks to all run
>> for one host at a time, combine that with wait_for to test that the
>> mysql db is back up.
>>
>>
>> --
>> Brian Coca
>
> --
> 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/f09ac374-158e-48e0-9a31-4b6afb8214a0%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8k1iueDa%2BoaELn70uQ7F8bYRoCkAzfTM-yKpJA0Jv7buA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to