yeoldegrove.targetcli.targetcli_iscsi_portal (6.0.0) — module

TargetCLI portal module

| "added in version" 2.0 of yeoldegrove.targetcli"

Authors: Loïc (@psykotox)

preview | supported by community

Install collection

Install with ansible-galaxy collection install yeoldegrove.targetcli:==6.0.0


Add to requirements.yml

  collections:
    - name: yeoldegrove.targetcli
      version: 6.0.0

Description

module for handling iSCSI portals object in targetcli ('/iscsi/.../tpg1/portals').

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove default 0.0.0.0:3260 portal
  targetcli_iscsi_portal:
    wwn: 'iqn.2020-01.com.recisio.iscsi:alpha'
    portal_ip: '0.0.0.0'
    state: 'absent'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: define new iSCSI portal
  targetcli_iscsi_portal:
    wwn: 'iqn.2020-01.com.recisio.iscsi:alpha'
    portal_ip: '192.168.1.10'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove iSCSI portal
  targetcli_iscsi_portal:
    wwn: 'iqn.2020-01.com.recisio.iscsi:alpha'
    portal_ip: '192.168.1.10'
    state: 'absent'

Inputs

    
wwn:
    default: null
    description:
    - WWN of iSCSI target (server)
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Should the object be present or absent from TargetCLI configuration
    required: false
    type: str

portal_ip:
    default: null
    description:
    - ip of portal object
    required: true
    type: str

portal_port:
    default: 3260
    description:
    - port of portal object
    required: false
    type: int