Using the ansible module “cloudflare_dns” I am not able to delete a record.
Here is the playbook:
tasks:
- name: Borrando registro en < CLOUDFLARE >
cloudflare_dns:
zone: domain
type: A
value: kibe-stage-l5
state: absent
account_email: john@john.com
account_api_key: xxxxxxxxxxxxxxxxxxxxxx
When I enter the cloudflare control panel the log is still created.
I tried in the parameter “value” with kibe-stage-l5.domain but the record is not deleted.
Here the ansible verbose:
ok: [kibe-stage] => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/bin/python”
},
“changed”: false,
“invocation”: {
“module_args”: {
“account_api_key”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“account_email”: “egonzalez@domain.com”,
“algorithm”: null,
“api_token”: null,
“cert_usage”: null,
“hash_type”: null,
“key_tag”: null,
“port”: null,
“priority”: 1,
“proto”: null,
“proxied”: false,
“record”: “@”,
“selector”: null,
“service”: null,
“solo”: null,
“state”: “absent”,
“timeout”: 30,
“ttl”: 1,
“type”: “A”,
“value”: “kibe-stage-l5”,
“weight”: 1,
“zone”: “domain.com”
}
}
}
any ideas?