ansible.builtin.purefa_pgsnap (v2.6.17) — module

Manage protection group snapshots on Pure Storage FlashArrays

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

Authors: Simon Dodsley (@sdodsley)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.6.17

Description

Create or delete protection group snapshots on Pure Storage FlashArray.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create protection group snapshot foo.ansible
  purefa_pgsnap:
    name: foo
    suffix: ansible
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete and eradicate protection group snapshot named foo.snap
  purefa_pgsnap:
    name: foo
    suffix: snap
    eradicate: true
    fa_url: 10.10.10.2
    api_token: e31060a7-21fc-e277-6240-25983c6c4592
    state: absent

Inputs

    
name:
    description:
    - The name of the source protection group.
    required: true

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Define whether the protection group snapshot should exist or not.

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

suffix:
    description:
    - Suffix of snapshot name.

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

eradicate:
    default: 'no'
    description:
    - Define whether to eradicate the snapshot on delete or leave in trash.
    type: bool