-
Notifications
You must be signed in to change notification settings - Fork 163
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
win_dns_record: state changed but nothing is done when adding record #564
Comments
We are experiencing similar behaviour when trying to add a CNAME to a DNS forward lookup table using Ansible [core 2.16.7] community.windows 2.2.0 |
Same here, we tried adding type A records. The module is showing state changed with no errors, and if we replay it, it's green with OK state. However no DNS entry was created in our DNS server. Here is how we use the module :
ansible [core 2.15.8] |
We found what our issue was. It turns out that when creating a type A record, you MUST remove the domain from the "name" field (similarly to CNAME records), contrary to what the example in the official documentation says : The official doc example :
What you should do instead :
Leaving this here in case it helps someone. |
SUMMARY
Trying to add record to DNS using
win_dns_record
:WinRM Connection works, I can run thos command from a powershell session myself. the status I get is
Changed
.However being adding a record or editing a record do not do anything.
ISSUE TYPE
COMPONENT NAME
win_dns_record
ANSIBLE VERSION
COLLECTION VERSION
EXPECTED RESULTS
DNS record is updated or added.
ACTUAL RESULTS
Everything seems OK but nothing happen on the DNS server.
No modification, no new record either.
Truncated part convert to that output (using
base64 -d
twice gices that:The text was updated successfully, but these errors were encountered: