NSupdate issue

10 views
Skip to first unread message

MIke Drtikol

unread,
Jun 3, 2019, 2:34:58 AM6/3/19
to Ansible Project
Hi all,

I have a issue to make dns record in my win AD server. Im sugin kerberos because its more convinient and MS AD does not support tsig. With kinit standalone application nsupdate works ok, but with ansible module, im getting error below.. Please help.. I Also specified inventory like this 


ansible_port=5986
ansible_connection=winrm
ansible_winrm_transport=kerberos
ansible_winrm_server_cert_validation=ignore




The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File "/tmp/ansible_nsupdate_payload_ZGtARU/__main__.py", line 272, in create_record
    entry)
  File "/usr/lib/python2.7/site-packages/dns/update.py", line 136, in add
    self._add(False, self.authority, name, *args)
  File "/usr/lib/python2.7/site-packages/dns/update.py", line 120, in _add
    self.origin)
  File "/usr/lib/python2.7/site-packages/dns/rdata.py", line 391, in from_text
    return cls.from_text(rdclass, rdtype, tok, origin, relativize)
  File "/usr/lib/python2.7/site-packages/dns/rdtypes/IN/A.py", line 46, in from_text
    return cls(rdclass, rdtype, address)
  File "/usr/lib/python2.7/site-packages/dns/rdtypes/IN/A.py", line 36, in __init__
    dns.ipv4.inet_aton(address)
  File "/usr/lib/python2.7/site-packages/dns/ipv4.py", line 63, in inet_aton
    raise dns.exception.SyntaxError
fatal: [localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "key_algorithm": "hmac-md5",
            "key_name": null,
            "key_secret": null,
            "port": 53,
            "record": "testujuns",
            "server": "server.domain.local",
            "state": "present",
            "ttl": 3600,
            "type": "A",
            "value": [
                "155.55.477.11"
            ],
            "zone": "parfums.local."
        }
    },
    "msg": "Invalid/malformed value"

Reply all
Reply to author
Forward
0 new messages