ansible / ansible.builtin / v2.5.15 / module / gcdns_zone Creates or removes zones in Google Cloud DNS | "added in version" 2.2 of ansible.builtin" Authors: William Albert (@walbert947) preview | supported by communityansible.builtin.gcdns_zone (v2.5.15) — module
pip
Install with pip install ansible==2.5.15
Creates or removes managed zones in Google Cloud DNS.
# Basic zone creation example. - name: Create a basic zone with the minimum number of parameters. gcdns_zone: zone=example.com
# Zone removal example. - name: Remove a zone. gcdns_zone: zone=example.com state=absent
# Zone creation with description - name: Creating a zone with a description gcdns_zone: zone=example.com description="This is an awesome zone"
zone: aliases: - name description: - The DNS domain name of the zone. - This is NOT the Google Cloud DNS zone ID (e.g., example-com). If you attempt to specify a zone ID, this module will attempt to create a TLD and will fail. required: true state: choices: - present - absent default: present description: - Whether the given zone should or should not be present. required: false pem_file: default: null description: - The path to the PEM file associated with the service account email. - This option is deprecated and may be removed in a future release. Use I(credentials_file) instead. required: false project_id: default: null description: - The Google Cloud Platform project ID to use. required: false description: default: '' description: - An arbitrary text string to use for the zone description. required: false credentials_file: default: null description: - The path to the JSON file associated with the service account email. required: false service_account_email: default: null description: - The e-mail address for a service account with access to Google Cloud DNS. required: false
description: description: The zone's description returned: success sample: This is an awesome zone type: string state: description: Whether the zone is present or absent returned: success sample: present type: string zone: description: The zone's DNS name returned: success sample: example.com. type: string