netapp.storagegrid.na_sg_grid_dns (21.12.0) — module

NetApp StorageGRID manage external DNS servers for the grid.

| "added in version" 20.6.0 of netapp.storagegrid"

Authors: NetApp Ansible Team (@joshedmonds) <ng-ansibleteam@netapp.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install netapp.storagegrid:==21.12.0


Add to requirements.yml

  collections:
    - name: netapp.storagegrid
      version: 21.12.0

Description

Update NetApp StorageGRID DNS addresses.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: update DNS servers on StorageGRID
    netapp.storagegrid.na_sg_grid_dns:
      api_url: "https://<storagegrid-endpoint-url>"
      auth_token: "storagegrid-auth-token"
      validate_certs: false
      state: present
      dns_servers: "x.x.x.x,xxx.xxx.xxx.xxx"

Inputs

    
state:
    choices:
    - present
    default: present
    description:
    - Whether the specified DNS address should exist or not.
    - Required for all operations.
    type: str

api_url:
    description:
    - The url to the StorageGRID Admin Node REST API.
    required: true
    type: str

auth_token:
    description:
    - The authorization token for the API request
    required: true
    type: str

dns_servers:
    description:
    - List of comma separated DNS Addresses to be updated or delete.
    elements: str
    required: true
    type: list

validate_certs:
    default: true
    description:
    - Should https certificates be validated?
    required: false
    type: bool

Outputs

resp:
  description: Returns information about the configured DNS servers.
  elements: str
  returned: success
  sample:
  - 8.8.8.8
  - 8.8.4.4
  type: list