Ansible for Windows Server DHCP feature (dhcpmgmt.msc)

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

We’re looking for the same thing. What’d you end up using?