Nosmoht / ansible-module-powerdns

Ansible module to manage PowerDNS entries
Apache License 2.0
70 stars 51 forks source link

msg: 'Error: ' #34

Open inetman28 opened 3 years ago

inetman28 commented 3 years ago

hi I got below error. Could you please help me to solve issue?

The full traceback is:
  File "/var/folders/24/w6k0_g_s1vq5c4xvprz1_ck80000gp/T/ansible_powerdns_record_payload_fg0t06jz/ansible_powerdns_record_payload.zip/ansible/modules/powerdns_record.py", line 429, in main
  File "/var/folders/24/w6k0_g_s1vq5c4xvprz1_ck80000gp/T/ansible_powerdns_record_payload_fg0t06jz/ansible_powerdns_record_payload.zip/ansible/modules/powerdns_record.py", line 309, in ensure
  File "/var/folders/24/w6k0_g_s1vq5c4xvprz1_ck80000gp/T/ansible_powerdns_record_payload_fg0t06jz/ansible_powerdns_record_payload.zip/ansible/modules/powerdns_record.py", line 187, in get_record
  File "/var/folders/24/w6k0_g_s1vq5c4xvprz1_ck80000gp/T/ansible_powerdns_record_payload_fg0t06jz/ansible_powerdns_record_payload.zip/ansible/modules/powerdns_record.py", line 142, in _handle_request
[WARNING]: Module did not set no_log for pdns_api_password
fatal: [SWITCH1]: FAILED! => changed=false 
  invocation:
    module_args:
      content: 10.15.8.254
      disabled: false
      exclusive: true
      name: fsdfsdf.local
      pdns_api_key: null
      pdns_api_password: <password>
      pdns_api_username: <user_name>
      pdns_host: ns-master.local
      pdns_port: 80
      pdns_prot: http
      server: localhost
      set_ptr: false
      state: present
      strict_ssl_checking: true
      ttl: 600
      type: A
      zone: local
  msg: 'Error: '
inetman28 commented 3 years ago

@Nosmoht

Nosmoht commented 3 years ago

Hi @inetman28,

i'm not working with PowerDNS anymore since years. Therefore i can't support you, sorry.

But maybe others could help you if you would post the code you are using. The repo still gets updates from the community ;)

lordtaki commented 9 months ago

Almost 3 years later... but just for the record you might want to check the privileges. This endpoint is called and needs 'admin' '{url}/servers/{server}/search-data'