Restart Servers Serially on Different Servers

7 views
Skip to first unread message

Suvelee Sarpotdar

unread,
Feb 9, 2016, 12:28:15 PM2/9/16
to Ansible Project
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


Reply all
Reply to author
Forward
0 new messages