(Openstack-Designate) rndc key not getting generated in /etc/designate
Hi Team, My DNS Server located outside the Open Stack, and i am using below variables in my user_variables.yaml File. But When i ' m running os-desigante-install.yml Playbook, rndc key are not generating in /etc/designate Folder and the playbook fail at the below Task {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'file'\n\nThe error appears to be in '/etc/ansible/roles/os_designate/tasks/designate_post_install.yml': line 89, 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: Create Designate rndc key file\n ^ here\n"} - name: Create Designate rndc key file template: src: rndc.key.j2 dest: "{{ item.file }}" owner: "{{ item.owner | default('root') }}" group: "{{ item.group | default('root') }}" mode: "{{ item.mode | default('0600') }}" with_items: "{{ designate_rndc_keys }}" when: designate_rndc_keys is defined and the post-install.yml File looks like this Any idea on this, Where i am missing ## rndc keys for authenticating with bind9 # define this to create as many key files as are required # designate_rndc_keys # - name: "rndc-key" # file: /etc/designate/rndc.key # algorithm: "hmac-md5" # secret: "<key>"
Hi there, Looking through the code, I really don't see any obvious issue or bug in there. So based on that it sounds that this error might be raised only if you have defined `designate_rndc_keys` variable somewhere (like user_variables) but did not provided `file` key in it, which made this task fail. As `file`, `name`, `secret` and `algorithm` keys are all required ones in this variable. Would be great if you could double-check definition of the variable in your user_variables. ср, 29 мар. 2023 г. в 07:00, Adivya Singh <adivya1.singh@gmail.com>:
Hi Team,
My DNS Server located outside the Open Stack, and i am using below variables in my user_variables.yaml File.
But When i ' m running os-desigante-install.yml Playbook, rndc key are not generating in /etc/designate Folder
and the playbook fail at the below Task
{"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'file'\n\nThe error appears to be in '/etc/ansible/roles/os_designate/tasks/designate_post_install.yml': line 89, 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: Create Designate rndc key file\n ^ here\n"}
- name: Create Designate rndc key file template: src: rndc.key.j2 dest: "{{ item.file }}" owner: "{{ item.owner | default('root') }}" group: "{{ item.group | default('root') }}" mode: "{{ item.mode | default('0600') }}" with_items: "{{ designate_rndc_keys }}" when: designate_rndc_keys is defined
and the post-install.yml File looks like this
Any idea on this, Where i am missing
## rndc keys for authenticating with bind9 # define this to create as many key files as are required # designate_rndc_keys # - name: "rndc-key" # file: /etc/designate/rndc.key # algorithm: "hmac-md5" # secret: "<key>"
participants (2)
-
Adivya Singh
-
Dmitriy Rabotyagov