# Restart Servers Serially on Different Servers

**URL:** <https://forum.ansible.com/t/restart-servers-serially-on-different-servers/20498>\
**Category:** Ansible Project\
**Created:** [February 9, 2016, 5:14pm UTC](https://forum.ansible.com/t/restart-servers-serially-on-different-servers/20498 "2016-02-09T17:14:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suvelee\_Sarpotdar](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Suvelee\_Sarpotdar](https://forum.ansible.com/u/Suvelee_Sarpotdar)\
**Post date:** [February 9, 2016, 5:14pm UTC](https://forum.ansible.com/t/restart-servers-serially-on-different-servers/20498/1 "2016-02-09T17:14:18Z")

</div>

I have two groups of hosts - app and gateway. Each app talks to corresponding gateway. I am upgrading app to a new version serially (4 at a time) and restarting it. I would like to restart the corresponding gateway after the app is restarted. Can I use handler with include file that restarts the gateway on different host? Or is there a better a way to do this?

Host: app  
serial: 4  
roles:

- upgrade\_app
- restart

Host: gateway  
serial: 4  
roles:

- restart

Can the above 4 lines be added in playbook that can be included as handler in app playbook?

Thanks,  
Suvelee
