ansible-collections / community.windows

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

Provide ability to create a DHCP Scope #552

Open DonBower opened 5 months ago

DonBower commented 5 months ago
SUMMARY

While creating DHCP leases are a great feature, A zone is required to place them in.

ISSUE TYPE
COMPONENT NAME

I would suggest win_dhcp_lease

ADDITIONAL INFORMATION
- name: Ensure DHCP Scope exists
  community.windows.win_dhcp_scope:
    type: (ipv4 | ipv6)
    start_ip: 192.168.1.1
    end_ip: 192.168.1.254
    scope_id: 192.168.1.0
    name: my_scope
    description: Testing Scope
    scope_options:
      - 003: 192.168.1.1
      - 005: [192.168.1.1, 192.168.1.2]
      - 015: mydomain.net