Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible job failed at DNS Forwarders stage #3

Open
curiv opened this issue Oct 25, 2021 · 4 comments
Open

ansible job failed at DNS Forwarders stage #3

curiv opened this issue Oct 25, 2021 · 4 comments

Comments

@curiv
Copy link

curiv commented Oct 25, 2021

Here's result of asnible job:

< TASK [domain_controller : Configure DNS Forwarders] >
 -----------------------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

fatal: [192.168.56.10]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (win_dsc) module: Name. Supported parameters include: UpdateOptions, NoRecursion, SendPort, DefaultRefreshInterval, LocalNetPriority, DsPollingInterval, EnableDirectoryPartitions, ForwardingTimeout, DnsServer, LogLevel, module_version, DisableAutoReverseZones, RecursionRetry, AllowUpdate, DefaultAgingState, EnableEDnsProbes, BootMethod, RoundRobin, DisjointNets, MaxCacheTTL, AutoConfigFileZones, SecureResponses, IsSlave, RpcProtocol, StrictFileParsing, XfrConnectTimeout, RecursionTimeout, PsDscRunAsCredential_username, LooseWildcarding, BindSecondaries, WriteAuthorityNS, resource_name, ScavengingInterval, ListenAddresses, ForwardDelegations, MaxNegativeCacheTTL, Forwarders, AutoCacheUpdate, DefaultNoRefreshInterval, AddressAnswerLimit, EnableDnsSec, EDnsCacheTimeout, DsTombstoneInterval, DependsOn, NameCheckFlag, PsDscRunAsCredential_password"}

Tests it on domain_controller and labsetup jobs.

@belveruski
Copy link

Same problem:
image

@0xMentats
Copy link

same here

@LaRancion
Copy link

did you guys found a fix for this?

@benzammour
Copy link

As I had the same problem setting up my repository, I'll document what I found here: the ansible task description is outdated as the used keywords are deprecated.

To fix this, replace the DNS Forwarder section with:

- name: Configure DNS Forwarders
  win_dsc:
    resource_name: xDnsServerForwarder
    IsSingleInstance: "yes"
    UseRootHint: false
    IPAddresses:
      - "1.1.1.1"
      - "8.8.8.8"

Also see here (Disclaimer: my own repo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants