ansible / ansible.builtin / v2.7.16 / module / purefa_snap Manage volume snapshots on Pure Storage FlashArrays | "added in version" 2.4 of ansible.builtin" Authors: Simon Dodsley (@sdodsley) preview | supported by communityansible.builtin.purefa_snap (v2.7.16) — module
pip
Install with pip install ansible==2.7.16
Create or delete volumes and volume snapshots on Pure Storage FlashArray.
- name: Create snapshot foo.ansible purefa_snap: name: foo suffix: ansible fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 state: present
- name: Create R/W clone foo_clone from snapshot foo.snap purefa_snap: name: foo suffix: snap target: foo_clone fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 state: copy
- name: Overwrite existing volume foo_clone with snapshot foo.snap purefa_snap: name: foo suffix: snap target: foo_clone overwrite: true fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 state: copy
- name: Delete and eradicate snapshot named foo.snap purefa_snap: name: foo suffix: snap eradicate: true fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 state: absent
name: description: - The name of the source volume. required: true state: choices: - absent - copy - present default: present description: - Define whether the volume snapshot should exist or not. fa_url: description: - FlashArray management IPv4 address or Hostname. required: true type: str suffix: description: - Suffix of snapshot name. target: description: - Name of target volume if creating from snapshot. 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 overwrite: default: 'no' description: - Define whether to overwrite existing volume when creating from snapshot. type: bool