ansible.builtin.emc_vnx_sg_member (v2.9.27) — module

Manage storage group member on EMC VNX

| "added in version" 2.7 of ansible.builtin"

Authors: Luca 'remix_tj' Lorenzetto (@remixtj)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  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
  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

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

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

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