ansible-collections / community.windows

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

Provide ability to add DHCP Options to win_dhcp_lease #551

Open DonBower opened 10 months ago

DonBower commented 10 months ago
SUMMARY

Ability to identify specific DHCP options, such as 012 Host Name or 007 Log Servers, etc along with the specified values

ISSUE TYPE
COMPONENT NAME

win_dhcp_lease

ADDITIONAL INFORMATION
- name: Ensure DHCP reservation exists
  community.windows.win_dhcp_lease:
    type: reservation
    ip: 192.168.100.205
    scope_id: 192.168.100.0
    mac: 00:B1:8A:D1:5A:1F
    dns_hostname: myhostname.mydomain.net
    description: Testing Server
    reservation_options:
      - 012: myhostname
      - 007: [192.168.2.25,10.3.4.6]