Ansible for Windows Server DHCP feature (dhcpmgmt.msc)

650 views
Skip to first unread message

Yehuda Pinhas

unread,
Jan 27, 2020, 5:26:08 AM1/27/20
to Ansible Project
Hi,
I want to create ansible automation for create IPv4 pools on Windows Server 2019 operating system.

This is where I want to add the pool:

Capture.PNG







From what I understand I have two options I could do that:
1. Is to the find dhcpmgmt built-in Ansible module which is capable to create pools (don't know if this kind of module even exist)
2. Is to send PowerShell commands to the dhcp server (dhcp1) and configure the pool through that.


I need help in:
1. Does Ansible module exist for creating pools on dhcp windows servers? If it does can I get some references?
2. How do I configure windows servers with PowerShell commands? What module to use and how does the code for the task should look like?

Thanks in advance,
YP 

David Russell

unread,
Aug 22, 2020, 10:52:17 AM8/22/20
to Ansible Project
We're looking for the same thing.  What'd you end up using? 
Reply all
Reply to author
Forward
0 new messages