Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add SRV records with cloudflare_dns #8679

Closed
1 task done
saltydk opened this issue Jul 25, 2024 · 4 comments · Fixed by #8948
Closed
1 task done

Cannot add SRV records with cloudflare_dns #8679

saltydk opened this issue Jul 25, 2024 · 4 comments · Fixed by #8948
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@saltydk
Copy link
Contributor

saltydk commented Jul 25, 2024

Summary

Adding SRV records appear to be broken, guessing this is related https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#name-related-data-fields-on-srv-dns-records

Issue Type

Bug Report

Component Name

cloudflare_dns

Ansible Version

$ ansible --version
ansible [core 2.17.2]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /srv/ansible/venv/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0] (/srv/ansible/venv/bin/python3)
  jinja version = 3.1.4
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
Collection        Version
----------------- -------
community.general 9.1.0

Configuration

No response

OS / Environment

No response

Steps to Reproduce

- name: Create an SRV record _foo._tcp.example.net
  community.general.cloudflare_dns:
    domain: example.net
    service: foo
    proto: tcp
    port: 3500
    priority: 10
    weight: 20
    type: SRV
    value: fooserver.example.net

Expected Results

Added SRV record

Actual Results

{"changed": false, "msg": "API bad request; Status: 400; Method: POST: Call: /zones/zoneid/dns_records"}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Jul 25, 2024
@Lebowski89
Copy link

Getting the same error message for srv records, cname, and others. Doesn't matter if I use api token (zone-dns-edit) or global api.

@saltydk
Copy link
Contributor Author

saltydk commented Jul 27, 2024

Getting the same error message for srv records, cname, and others. Doesn't matter if I use api token (zone-dns-edit) or global api.

cname works fine, this might need to go to support rather than this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants