yeoldegrove.targetcli.targetcli_iscsi_acl (6.0.0) — module

TargetCLI iSCSI ACL 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 ACL objects in targetcli ('/iscsi/.../tpg1/acls').

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: define new iscsi ACL client
  targetcli_iscsi_acl:
    wwn: 'iqn.1994-05.com.redhat:data'
    initiator_wwn: 'iqn.1994-05.com.redhat:client1'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: remove iSCSI ACL
  targetcli_iscsi_acl:
    wwn: 'iqn.1994-05.com.redhat:data'
    initiator_wwn: 'iqn.1994-05.com.redhat:client1'
    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

auto_add_luns:
    default: true
    description:
    - Automatically map all existing LUNs to this ACL
    required: false
    type: bool

initiator_wwn:
    default: null
    description:
    - WWN of iSCSI initiator (client)
    required: true
    type: str