Deprecated

Removed in 2.0.0

i

Reason:Updated modules released with increased functionality | Alternative:Use M(google.cloud.gcp_dns_managed_zone) instead.

community.general.gcdns_zone (1.3.14) — module

Creates or removes zones in Google Cloud DNS

Authors: William Albert (@walbert947)

Install collection

Install with ansible-galaxy collection install community.general:==1.3.14


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.14

Description

Creates or removes managed zones in Google Cloud DNS.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Basic zone creation example.
- name: Create a basic zone with the minimum number of parameters.
  community.general.gcdns_zone: zone=example.com
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Zone removal example.
- name: Remove a zone.
  community.general.gcdns_zone: zone=example.com state=absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Zone creation with description
- name: Creating a zone with a description
  community.general.gcdns_zone: zone=example.com description="This is an awesome zone"

Inputs

    
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
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the given zone should or should not be present.
    type: str

pem_file:
    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.
    type: path

project_id:
    description:
    - The Google Cloud Platform project ID to use.
    type: str

description:
    default: ''
    description:
    - An arbitrary text string to use for the zone description.
    type: str

credentials_file:
    description:
    - The path to the JSON file associated with the service account email.
    type: path

service_account_email:
    description:
    - The e-mail address for a service account with access to Google Cloud DNS.
    type: str

Outputs

description:
  description: The zone's description
  returned: success
  sample: This is an awesome zone
  type: str
state:
  description: Whether the zone is present or absent
  returned: success
  sample: present
  type: str
zone:
  description: The zone's DNS name
  returned: success
  sample: example.com.
  type: str