justin-p/ansible-role-pdc

Update DNS PowerShell to DSC

justin-p opened this issue · 1 comments

- name: Check for xDnsServer Powershell module
  win_psmodule:
    name: xDnsServer
    state: present

- name: Configure DNS Forwarders
  win_dsc:
    resource_name: xDnsServerSetting
    Name: DNSServerProperties
    NoRecursion: false
    Forwarders:
      - "8.8.8.8"
      - "8.8.4.4"

Replacing it with DSC should also fix #6 and #7