Skip to content

Commit

Permalink
Fixed listing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-p committed Apr 9, 2020
1 parent 3f0c67a commit 877aa56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
- name: Ensure DNS Forwarders are set to desired forwarders
win_shell: |
Try {
$CurrentForwarders = $([Array]$(Get-DnsServerForwarder).IPAddress.IPAddressToString)
$DesiredForwarders = ConvertFrom-JSON '{{ pdc_desired_dns_forwarders | to_json }}'
$CurrentForwarders = $([Array]$(Get-DnsServerForwarder).IPAddress.IPAddressToString)
$DesiredForwarders = ConvertFrom-JSON '{{ pdc_desired_dns_forwarders | to_json }}'
if ($Null -ne $(Compare-Object $CurrentForwarders $DesiredForwarders)) {
Set-DNSServerForwarder -IPAddress $DesiredForwarders
Exit 1
Exit 1
} Else {
Exit 0
}
Expand Down

0 comments on commit 877aa56

Please sign in to comment.