goldyfruit.ibmcloud_automation.ic_dns_private_record (1.0.4) — module

Create or delete private DNS instance.

| "added in version" 2.9 of goldyfruit.ibmcloud_automation"

Authors: James Regis (@jregis)

preview | supported by community

Install collection

Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4


Add to requirements.yml

  collections:
    - name: goldyfruit.ibmcloud_automation
      version: 1.0.4

Description

Create or delete private DNS instamce on IBM Cloud.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create an A DNS record
- ic_dns_private_record:
    dns_zone: ibmcloud-dns-baby
    resource_instance: ibmcloud-rg-baby
    description: Hail to the king baby
    label: dev
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create a private DNS
- ic_dns_private_record:
    dns_zone: ibmcloud-dns-baby
    resource_instance: ibmcloud-rg-baby
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Delete a private DNS
- ic_dns_private_record:
    dns_zone: ibmcloud-dns-baby
    resource_instance: ibmcloud-rg-baby
    state: absent

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Should the resource be present or absent.
    required: false

record:
    description: "-  JSON structure representing the record to add in the DNS.\n{\n  \"\
      name\": \"testA\",\n  \"type\": \"A\",\n  \"rdata\": {\n  \_\_\_ \"ip\": \"1.2.3.4\"\
      \n  }\n}\n"
    required: true

dns_zone:
    description:
    - Name that has to be given to the DNS to create or delete. During the removal an
      UUID could be used.
    required: true

record_id:
    description:
    - Record id to delete.
    required: true

record_name:
    description:
    - Record name to delete (fqdn).
    required: true

resource_instance:
    description:
    - Name or UUID of the resource instance that hosts thw DNS.
    required: false