yeoldegrove.targetcli.targetcli_iscsi (6.0.0) — module

TargetCLI iSCSI target module

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

Authors: Ondrej Famera (@OndrejHome)

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 objects in targetcli ('/iscsi').

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: define new iscsi target
  targetcli_iscsi:
    wwn: 'iqn.1994-05.com.redhat:data'
    attributes: 'demo_mode_write_protect=0'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove existing target
  targetcli_iscsi:
    wwn: 'iqn.1994-05.com.redhat:hell'
    state: 'absent'

Inputs

    
wwn:
    default: null
    description:
    - WWN of iSCSI target
    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

attributes:
    default: null
    description:
    - Attributes for the defined target
    required: false
    type: str