Hi all,

this role:
- - -
- name: Show calling args
  debug:
    var: ca

- name: Update DNS master server
  community.general.nsupdate:
    key_name: "{{ key_name }}"
    key_algorithm: "{{ algorithm }}"
    key_secret: "{{ secret }}"
    server: "{{ server }}"
    zone: ca.zone
    record: ca.owner_name
    ttl: ca.ttl
    type: ca.type
    value: ca.RDATA
- - -
shows ttl arg as integer, but throws this exception:
- - -
TASK [Gathering Facts] 
***********************************************************************************************************************************************************
ok: [localhost]

TASK [Execute role lr_nsupdate with args {'ca': {'zone': 'framail.de', 
'owner_name': 'meteo.framail.de', 'ttl': 300, 'type': 'CNAME', 'RDATA': 
['meteo3.lrau.net', 'meteo4.lrau.net', 'meteo5.lrau.net']}}] ***

TASK [lr_nsupdate : Show calling args] 
*******************************************************************************************************************************************
ok: [localhost] => {
    "ca": {
        "ca": {
            "RDATA": [
                "meteo3.lrau.net",
                "meteo4.lrau.net",
                "meteo5.lrau.net"
            ],
            "owner_name": "meteo.framail.de",
            "ttl": 300,
            "type": "CNAME",
            "zone": "framail.de"
        }
    }
}

TASK [lr_nsupdate : Update DNS master server] 
************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "argument ttl is of 
type <class 'str'> and we were unable to convert to int: <class 'str'> cannot 
be converted to an int“}
- - -
What is wrong here?
Module nsupdate does not contain any related code.
Error seems to come from ansible framework.

Should I file a bug report?

Thanks, Axel
---
PGP-Key: CDE74120  ☀  computing @ chaos claudius

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/F26FBBCD-4ECA-402E-9C5F-9CD2989D3E48%40Chaos1.DE.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to