ansible.builtin.purefb_snap (v2.7.9) — module

Manage filesystem snapshots on Pure Storage FlashBlades

| "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.7.9

Description

Create or delete volumes and filesystem snapshots on Pure Storage FlashBlades.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create snapshot foo.ansible
  purefb_snap:
    name: foo
    suffix: ansible
    fb_url: 10.10.10.2
    fb_api_token: e31060a7-21fc-e277-6240-25983c6c4592
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete snapshot named foo.snap
  purefb_snap:
    name: foo
    suffix: snap
    fb_url: 10.10.10.2
    fb_api_token: e31060a7-21fc-e277-6240-25983c6c4592
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Recover deleted snapshot foo.ansible
  purefb_snap:
    name: foo
    suffix: ansible
    fb_url: 10.10.10.2
    fb_api_token: e31060a7-21fc-e277-6240-25983c6c4592
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Eradicate snapshot named foo.snap
  purefb_snap:
    name: foo
    suffix: snap
    eradicate: true
    fb_url: 10.10.10.2
    fb_api_token: e31060a7-21fc-e277-6240-25983c6c4592
    state: absent

Inputs

    
name:
    description:
    - The name of the source filesystem.
    required: true

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

fb_url:
    description:
    - FlashBlade management IP address or Hostname.
    type: str

suffix:
    description:
    - Suffix of snapshot name.

api_token:
    description:
    - FlashBlade API token for admin privileged user.
    type: str

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