ansible.builtin.purefa_dns (v2.9.27) — module

Configure FlashArray DNS settings

| "added in version" 2.8 of ansible.builtin"

Authors: Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com>

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Set or erase configuration for the DNS settings.

Nameservers provided will overwrite any existing nameservers.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete existing DNS settings
  purefa_dns:
    state: absent
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set DNS settings
  purefa_dns:
    domain: purestorage.com
    nameservers:
      - 8.8.8.8
      - 8.8.4.4
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592

Inputs

    
state:
    choices:
    - absent
    - present
    default: present
    description:
    - Set or delete directory service configuration
    type: str

domain:
    description:
    - Domain suffix to be appended when performing DNS lookups.
    type: str

fa_url:
    description:
    - FlashArray management IPv4 address or Hostname.
    required: true
    type: str

api_token:
    description:
    - FlashArray API token for admin privileged user.
    required: true
    type: str

nameservers:
    description:
    - List of up to 3 unique DNS server IP addresses. These can be IPv4 or IPv6 - No validation
      is done of the addresses is performed.
    type: list