community.general.emc_vnx_sg_member (8.5.0) — module

Manage storage group member on EMC VNX

Authors: Luca 'remix_tj' Lorenzetto (@remixtj)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module manages the members of an existing storage group.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add lun to storage group
  community.general.emc_vnx_sg_member:
    name: sg01
    sp_address: sp1a.fqdn
    sp_user: sysadmin
    sp_password: sysadmin
    lunid: 100
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove lun from storage group
  community.general.emc_vnx_sg_member:
    name: sg01
    sp_address: sp1a.fqdn
    sp_user: sysadmin
    sp_password: sysadmin
    lunid: 100
    state: absent

Inputs

    
name:
    description:
    - Name of the Storage group to manage.
    required: true
    type: str

lunid:
    description:
    - Lun id to be added.
    required: true
    type: int

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Indicates the desired lunid state.
    - V(present) ensures specified lunid is present in the Storage Group.
    - V(absent) ensures specified lunid is absent from Storage Group.
    type: str

sp_user:
    default: sysadmin
    description:
    - Username for accessing SP.
    type: str

sp_address:
    description:
    - Address of the SP of target/secondary storage.
    required: true
    type: str

sp_password:
    default: sysadmin
    description:
    - password for accessing SP.
    type: str

Outputs

hluid:
  description: LUNID that hosts attached to the storage group will see.
  returned: success
  type: int