ansible-collections / community.windows

Windows community collection for Ansible
https://galaxy.ansible.com/community/windows
GNU General Public License v3.0
198 stars 153 forks source link

`win_dhcp_lease` add ipv6 functionality #504

Closed marcb4 closed 1 year ago

marcb4 commented 1 year ago
SUMMARY

Currently it is not possible to use the module win_dhcp_lease for IPv6 addresses.

ISSUE TYPE
COMPONENT NAME

win_dhcp_lease

ADDITIONAL INFORMATION

There are different ways on how to achieve the IPv6 functionality. We could also instead of boolean for v6 use something else like version and demand strings like ipv4 or ipv6. Or instead of using an if statement for every Powershell cmdlet extract everything to a separate ipv6 module. Use whatever you may like from my commit. Note: this is currently fully untested as I don't have the resources to test this against a development dhcp server.

marcb4 commented 1 year ago

I will completely rewrite my changes and open another pull request when it's fully working as there are way too many commits for now.