opentelekomcloud / ansible-collection-cloud

Ansible modules for using with OTC (addition to the native OpenStack modules)
Apache License 2.0
21 stars 13 forks source link

dns_zone module #335

Open flwitten opened 4 months ago

flwitten commented 4 months ago

Hi everyone,

If I'm running e.g.

- name: Create private zones
  opentelekomcloud.cloud.dns_zone:
    name:        "example.com."
    state:       present
    zone_type:   private
    router:      "{{ vpc_info.vpc.id }}"
    description: Test Private Zone
    ttl:         300
    email:       root@example.com

The DNS-Privatezone is created. That works, but If I run the playbook again it's not returning an OK as expected but an error.

fatal: [localhost]: FAILED! => 
{
    "changed": false,
    "extra_data": 
        {
            "data": null, 
            "details": "This VPC has already been associated with the zone. Zone ID:******************.", 
            "response": "{\"code\":\"DNS.0212\",\
            "message\":\"This VPC has already been associated with the zone. Zone ID:*******************.\"}"}, 
            "msg": "This VPC has already been associated with the zone. Zone ID:************.: Client Error for url: https://dns.eu-de.otc.t-systems.com/v2/zones, This VPC has already been associated with the zone. Zone ID:***************."}

Is this the expected behaviour?

Thank you in advance, Best regards