community.general.ibm_sa_host_ports (8.5.0) — module

Add host ports on IBM Spectrum Accelerate Family storage systems

Authors: Tzur Eliyahu (@tzure)

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 adds ports to or removes them from the hosts on IBM Spectrum Accelerate Family storage systems.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add ports for host.
  community.general.ibm_sa_host_ports:
    host: test_host
    iscsi_name: iqn.1994-05.com***
    username: admin
    password: secret
    endpoints: hostdev-system
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove ports for host.
  community.general.ibm_sa_host_ports:
    host: test_host
    iscsi_name: iqn.1994-05.com***
    username: admin
    password: secret
    endpoints: hostdev-system
    state: absent

Inputs

    
host:
    description:
    - Host name.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Host ports state.
    type: str

password:
    description:
    - Password for username on the spectrum accelerate storage system.
    required: true
    type: str

username:
    description:
    - Management user on the spectrum accelerate storage system.
    required: true
    type: str

endpoints:
    description:
    - The hostname or management IP of Spectrum Accelerate storage system.
    required: true
    type: str

fcaddress:
    description:
    - Fiber channel address.
    required: false
    type: str

iscsi_name:
    description:
    - iSCSI initiator name.
    required: false
    type: str

num_of_visible_targets:
    description:
    - Number of visible targets.
    required: false
    type: str