goldyfruit / goldyfruit.ibmcloud_automation / 1.0.4 / module / ic_dns_private_record Create or delete private DNS instance. | "added in version" 2.9 of goldyfruit.ibmcloud_automation" Authors: James Regis (@jregis) preview | supported by communitygoldyfruit.ibmcloud_automation.ic_dns_private_record (1.0.4) — module
Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4
collections: - name: goldyfruit.ibmcloud_automation version: 1.0.4
Create or delete private DNS instamce on IBM Cloud.
# 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
# Create a private DNS - ic_dns_private_record: dns_zone: ibmcloud-dns-baby resource_instance: ibmcloud-rg-baby
# Delete a private DNS - ic_dns_private_record: dns_zone: ibmcloud-dns-baby resource_instance: ibmcloud-rg-baby state: absent
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