hpe.nimble.hpe_nimble_protection_template – Manage the HPE Nimble Storage protection templates
Note
This plugin is part of the hpe.nimble collection (version 1.1.4).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install hpe.nimble
.
To use it in a playbook, specify: hpe.nimble.hpe_nimble_protection_template
.
New in version 1.0.0: of hpe.nimble
Requirements
The below requirements are needed on the host that executes this module.
Ansible 2.9 or later
Python 3.6 or later
HPE Nimble Storage SDK for Python
HPE Nimble Storage arrays running NimbleOS 5.0 or later
Parameters
Parameter |
Comments |
---|---|
Generic backup agent hostname. |
|
Generic backup agent password. |
|
Generic backup agent username. |
|
If the application is running within a windows cluster environment, this is the cluster name. |
|
Application ID running on the server. Choices:
|
|
Application server hostname. |
|
If the application is running within a windows cluster environment then this is the instance name of the service running within the cluster environment. |
|
Application synchronization. Choices:
|
|
Change name of the existing protection template. |
|
Text description of protection template. |
|
HPE Nimble Storage IP address. |
|
Name of the protection template. |
|
HPE Nimble Storage password. |
|
The protection template operations. Choices:
|
|
HPE Nimble Storage user name. |
|
VMware vCenter hostname. |
|
Application VMware vCenter password. A password with few constraints. |
|
Application VMware vCenter username. String of up to 80 alphanumeric characters, beginning with a letter. It can include ampersand (@), backslash (), dash (-), period (.), and underscore (_). |
Examples
# if state is create , then create a protection template if not present. Fails if already present.
# if state is present, then create a protection template if not present. Succeed if it already exists.
- name: Create protection template if not present
hpe.nimble.hpe_nimble_protection_template:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
description: "{{ description | default(None)}}"
state: "{{ state | default('present') }}"
- name: Delete protection template
hpe.nimble.hpe_nimble_protection_template:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
state: absent
Authors
HPE Nimble Storage Ansible Team (@ar-india) <nimble-dcs-storage-automation-eng@hpe.com>