- name: Update DNS master server
community.general.nsupdate:
key_name: '{{ key_name }}'
key_algorithm: '{{ algorithm }}'
key_secret: '{{ secret }}'
server: '{{ server }}'
zone: '{{ ca.zone | default(None) }}'
record: '{{ ca.owner_name }}'
ttl: '{{ the_ttl | default(3600) }}'
type: '{{ ca.type }}'
value: '{{ ca.RDATA | default(None) }}'
state: "{{ ca.state | default('present') }}"
delegate_to: localhost
Those |default(None)| should probably be |default(omit)|.
Is this a bug in the nsupdate module?
I expect it is, or at least it could be handled better. But my guess is
it’s being triggered by your use of |None| instead of |omit|.
--
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/fa91b7a5-d674-94e3-8b3a-a6ead53af3af%40gmail.com.