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

add Zone Scope support to win_dns_record module #514

Closed uDuCkV closed 1 year ago

uDuCkV commented 1 year ago
SUMMARY

add support for Zone Scopes to win_dns_record module.

There is an option named "-ZoneScope" at XXX-DnsServerResourceRecord cmdlets for managing scopes (DNS views) on AD DNS servers zones. With this PR, we have added support to configure dns records inside Zone scopes.

ISSUE TYPE
COMPONENT NAME

win_dns_record

ADDITIONAL INFORMATION

Using the following tasks you add an A record to Zone's Scope named "external"

- name: Create database server record
  community.windows.win_dns_record:
    name: "cgyl1404p.amer.example.com"
    type: "A"
    value: "10.1.1.1"
    zone: "amer.example.com"
    zone_scope: "external"