On 4/23/20 10:53 AM, דודו דודו wrote:
> Group in Hosts file
> 
> hosts:
>     -  worker
>     -  master
>     - etc

Like for any other task, Ansible is going to run the task in parallel for all 
host in the play (to my knowledge).

You can change that with the "serial" keyword:

---
- name: test play
  hosts: webservers
  serial:
    - 1
    - 5
    - 10

You could try to adjust the serial parameters to the number of hosts in your 
groups.

Regards
       Racke

> 
> On Thursday, April 23, 2020 at 10:38:57 AM UTC+3, דודו דודו wrote:
> 
>     How does ansible reboot work?
> 
>     Is it going group by group? Does it reboot the servers in the first group 
> waits for them to go up and only then
>     starting with the second group?
> 
> -- 
> 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 
> <mailto:ansible-project+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ee605872-2583-43ed-812e-b0e155e24fb9%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/ee605872-2583-43ed-812e-b0e155e24fb9%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bb493594-de4b-2efe-0b34-65e2d8d0c460%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to