dellemc.powerstore.dns (3.2.0) — module

DNS operations on a PowerStore storage system

| "added in version" 1.5.0 of dellemc.powerstore"

Authors: Trisha Datta (@Trisha_Datta) <ansible.team@dell.com>

Install collection

Install with ansible-galaxy collection install dellemc.powerstore:==3.2.0


Add to requirements.yml

  collections:
    - name: dellemc.powerstore
      version: 3.2.0

Description

Performs all DNS operations on a PowerStore Storage System. This module supports get details of an existing DNS instance. You can modify existing DNS instance with supported parameters.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get details of DNS instance
  dellemc.powerstore.dns:
    array_ip: "{{array_ip}}"
    user: "{{user}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    dns_id: "DNS1"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add addresses to DNS instance
  dellemc.powerstore.dns:
    array_ip: "{{array_ip}}"
    user: "{{user}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    dns_id: "DNS1"
    dns_addresses:
      - "XX.XX.XX.XX"
      - "YY.YY.YY.YY"
    dns_address_state: "present-in-dns"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove addresses from DNS instance
  dellemc.powerstore.dns:
    array_ip: "{{array_ip}}"
    user: "{{user}}"
    password: "{{password}}"
    validate_certs: "{{validate_certs}}"
    dns_id: "DNS1"
    dns_addresses:
      - "YY.YY.YY.YY"
    dns_address_state: "absent-in-dns"
    state: "present"

Inputs

    
port:
    description:
    - Port number for the PowerStore array.
    - If not passed, it will take 443 as default.
    type: int

user:
    description:
    - The username of the PowerStore host.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    description:
    - The state of the DNS instance after the task is performed.
    - For get and modify operations it should be set to C(present).
    required: true
    type: str

dns_id:
    description:
    - Unique identifier of the DNS instance.
    required: true
    type: str

timeout:
    default: 120
    description:
    - Time after which the connection will get terminated.
    - It is to be mentioned in seconds.
    type: int

array_ip:
    description:
    - IP or FQDN of the PowerStore management system.
    required: true
    type: str

password:
    description:
    - The password of the PowerStore host.
    required: true
    type: str

dns_addresses:
    description:
    - DNS server addresses in IPv4 format.
    elements: str
    type: list

validate_certs:
    aliases:
    - verifycert
    default: true
    description:
    - Boolean variable to specify whether to validate SSL certificate or not.
    - C(true) - indicates that the SSL certificate should be verified. Set the environment
      variable REQUESTS_CA_BUNDLE to the path of the SSL certificate.
    - C(false) - indicates that the SSL certificate should not be verified.
    type: bool

dns_address_state:
    choices:
    - present-in-dns
    - absent-in-dns
    description:
    - State of the addresses mentioned in I(dns_addresses).
    type: str

Outputs

changed:
  description: Whether or not the resource has changed.
  returned: always
  sample: 'false'
  type: bool
dns_details:
  contains:
    addresses:
      description: DNS server addresses in IPv4 format.
      type: str
    id:
      description: Unique identifier of DNS instance.
      type: str
  description: Details of the DNS instance.
  returned: When DNS exists.
  sample:
    addresses:
    - 1.2.3.4
    - 5.6.7.8
    id: DNS1
  type: complex