Hi all, I have a role lr_nsupdate so: - - - - 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 | default(None) }}' record: '{{ ca.owner_name }}' ttl: '{{ the_ttl | default(3600) }}' type: '{{ ca.type }}' value: '{{ ca.RDATA }}' state: '{{ ca.state | default(present) }}‘ - - - When I call it so in another role: - - - - name: 'Delete CNAME db.lrau.net' include_role: name: lr_nsupdate vars: ca: ca.owner_name: 'db.lrau.net.' ca.state: 'absent' ca.type: ‚CNAME‘ - - - I get: - - - ok: [dbo5] => { "ca": { "ca.owner_name": "db.lrau.net.", "ca.state": "absent", "ca.type": "CNAME" } } TASK [lr_nsupdate : Update DNS master server] ************************************************************************************************************************************************************************************************************** fatal: [dbo5]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'owner_name'\n\nThe error appears to be in '/usr/local/etc/ansible/roles/lr_nsupdate/tasks/main.yaml': line 31, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Update DNS master server\n ^ here\n“} - - - Any help welcome, 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0B03386D-4CEF-4BCA-A1AC-F6D1156BFB30%40Chaos1.DE.
signature.asc
Description: Message signed with OpenPGP