# Ansible with multi boot machines - Ubuntu, Server 2016 and Win 10 Pro Machine clusters

**URL:** <https://forum.ansible.com/t/ansible-with-multi-boot-machines-ubuntu-server-2016-and-win-10-pro-machine-clusters/27062>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [March 20, 2018, 11:25pm UTC](https://forum.ansible.com/t/ansible-with-multi-boot-machines-ubuntu-server-2016-and-win-10-pro-machine-clusters/27062 "2018-03-20T23:25:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shane](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@shane](https://forum.ansible.com/u/shane)\
**Post date:** [March 20, 2018, 11:25pm UTC](https://forum.ansible.com/t/ansible-with-multi-boot-machines-ubuntu-server-2016-and-win-10-pro-machine-clusters/27062/1 "2018-03-20T23:25:10Z")

</div>

Hi All

Has anyone had successful experience using Ansible with multi boot machines.  
My case we have clusters of 16 machines that have 3 Boots:  
**1. Ubuntu 16** grub option 0  
**2. Windows 10 Pro** grub option 1

**3. Windows server 2016** grub option 2

The challenge is booting from Windows back to Windows.  
Grub does a great job handling any other boot sequence. So I usually let the machine reboot into grub option 0 (Ubuntu) and then from there I manually login via **csshx** (a simultaneous ssh tool) to set `sudo grub-reboot 1` to boot to Windows 10 Pro or `sudo grub-reboot 2` for Server 2016

I am hunting some clever Ansible logic to Boot from Windows back to Windows. This is a real pain point since we deploy and dev on the different boots everyday. Windows Patching is super janky - imagine my pain : )

Cheers  
Shane

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [March 24, 2018, 4:23pm UTC](https://forum.ansible.com/t/ansible-with-multi-boot-machines-ubuntu-server-2016-and-win-10-pro-machine-clusters/27062/2 "2018-03-24T16:23:30Z")

</div>

I don’t think you’ll get much help here until you figure out how to do it “manually” first.

That said, this whole setup seems like a nightmare. Why not just vms with _one_ os and spin them up/down as needed?
