justin-p / ansible-role-pdc

Setup a Primary Domain Controller and Active Directory on a Windows Server with a easy to use and abstracted Ansible role.
MIT License
21 stars 5 forks source link

Update DNS PowerShell to DSC #10

Open justin-p opened 2 years ago

justin-p commented 2 years ago
- 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"
justin-p commented 2 years ago

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