community.general.netapp_e_amg_role (0.1.1) — module

NetApp E-Series update the role of a storage array within an Asynchronous Mirror Group (AMG).

Authors: Kevin Hulquest (@hulquest)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Update a storage array to become the primary or secondary instance in an asynchronous mirror group

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Update the role of a storage array
      netapp_e_amg_role:
        name: updating amg role
        role: primary
        ssid: "{{ ssid }}"
        api_url: "{{ netapp_api_url }}"
        api_username: "{{ netapp_api_username }}"
        api_password: "{{ netapp_api_password }}"
        validate_certs: "{{ netapp_api_validate_certs }}"

Inputs

    
role:
    choices:
    - primary
    - secondary
    description:
    - Whether the array should be the primary or secondary array for the AMG
    required: true

ssid:
    description:
    - The ID of the primary storage array for the async mirror action
    required: true

force:
    default: false
    description:
    - Whether to force the role reversal regardless of the online-state of the primary
    required: false
    type: bool

noSync:
    default: false
    description:
    - Whether to avoid synchronization prior to role reversal
    required: false
    type: bool

api_url:
    description:
    - The url to the SANtricity WebServices Proxy or embedded REST API.
    required: true

api_password:
    description:
    - The password to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

api_username:
    description:
    - The username to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

validate_certs:
    default: true
    description:
    - Should https certificates be validated?
    required: false
    type: bool

Outputs

msg:
  description: Failure message
  returned: failure
  sample: No Async Mirror Group with the name.
  type: str