We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
Bug Report
cloudflare_dns
$ 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
$ ansible-galaxy collection list community.general Collection Version ----------------- ------- community.general 9.1.0
No response
- 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
Added SRV record
{"changed": false, "msg": "API bad request; Status: 400; Method: POST: Call: /zones/zoneid/dns_records"}
The text was updated successfully, but these errors were encountered:
Files identified in the description:
plugins/modules/cloudflare_dns.py
If these files are incorrect, please update the component name section of the description or use the !component bot command.
component name
!component
click here for bot help
Sorry, something went wrong.
cc @mgruener click here for bot help
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.
Successfully merging a pull request may close this issue.
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
Community.general Version
Configuration
No response
OS / Environment
No response
Steps to Reproduce
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
The text was updated successfully, but these errors were encountered: