# Need to Deploy OS using ansible playbook

**URL:** <https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744>\
**Category:** Ansible Project\
**Created:** [April 21, 2020, 8:16am UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744 "2020-04-21T08:16:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavan\_Nr](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Post date:** [April 21, 2020, 8:16am UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744/1 "2020-04-21T08:16:13Z")

</div>

Hi All,

any one experimented how to deploy OS using playbook ?  
how to call WDS Server using ansible playbook?

if anyone done , please share me steps.

regards,  
Pavan

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 21, 2020, 9:52am UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744/2 "2020-04-21T09:52:05Z")

</div>

When you say deploy an OS:

is this a bare-metal Server or a Virtual Machine on vSphere ?

---

<div class="post-metadata">

**Author:** ![Pavan\_Nr](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Post date:** [April 21, 2020, 10:17am UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744/3 "2020-04-21T10:17:09Z")

</div>

need to deploy WS2019 OS on bare-metal server not in virtual machine

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 21, 2020, 12:09pm UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744/4 "2020-04-21T12:09:28Z")

</div>

If the Server is an HP maybe try this Module:

[https://docs.ansible.com/ansible/latest/modules/hpilo\_boot\_module.html](https://docs.ansible.com/ansible/latest/modules/hpilo_boot_module.html)

Or Dell IDrac

[https://github.com/dell/dellemc-openmanage-ansible-modules](https://github.com/dell/dellemc-openmanage-ansible-modules)

---

<div class="post-metadata">

**Author:** ![Pavan\_Nr](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Pavan\_Nr](https://forum.ansible.com/u/Pavan_Nr)\
**Post date:** [April 21, 2020, 12:21pm UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744/5 "2020-04-21T12:21:58Z")

</div>

our server in dell , used below module , it’s working fine i have tested already.

[https://github.com/dell/dellemc-openmanage-ansible-modules](https://github.com/dell/dellemc-openmanage-ansible-modules)/idrac\_os\_deployment.yml

but it will trigger till WinEP , from there we have to do manually ,looking for zero touch deployment scenarios like how we do using Microsoft MDT.

let me know if you have any idea.

---

<div class="post-metadata">

**Author:** ![daemenseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/daemenseth/32/677_2.png) [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Post date:** [April 22, 2020, 4:54am UTC](https://forum.ansible.com/t/need-to-deploy-os-using-ansible-playbook/32744/6 "2020-04-22T04:54:07Z")

</div>

Hello Pavan.

Ansible is not a bare metal deployment tool.  
For bare metal you need wds with pxe of iso boot and mdt and then maybe use Ansible for the other tasks.  
Or make a preconfigured bootable iso or something.
