# Ansible reboot

**URL:** <https://forum.ansible.com/t/ansible-reboot/32767>\
**Category:** Ansible Project\
**Created:** [April 23, 2020, 7:38am UTC](https://forum.ansible.com/t/ansible-reboot/32767 "2020-04-23T07:38:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudu.c](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Post date:** [April 23, 2020, 7:38am UTC](https://forum.ansible.com/t/ansible-reboot/32767/1 "2020-04-23T07:38:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 23, 2020, 7:42am UTC](https://forum.ansible.com/t/ansible-reboot/32767/2 "2020-04-23T07:42:29Z")

</div>

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

Which kind of groups are you referring to?

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![dudu.c](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Post date:** [April 23, 2020, 8:53am UTC](https://forum.ansible.com/t/ansible-reboot/32767/3 "2020-04-23T08:53:38Z")

</div>

Group in Hosts file

hosts:

- worker
- master
- etc

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 23, 2020, 9:28am UTC](https://forum.ansible.com/t/ansible-reboot/32767/4 "2020-04-23T09:28:21Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![dudu.c](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Post date:** [April 23, 2020, 9:31am UTC](https://forum.ansible.com/t/ansible-reboot/32767/5 "2020-04-23T09:31:17Z")

</div>

Thank you.
