yeoldegrove / yeoldegrove.targetcli / 6.0.0 / module / targetcli_iscsi_lun TargetCLI LUN module | "added in version" 2.0 of yeoldegrove.targetcli" Authors: Ondrej Famera (@OndrejHome) preview | supported by communityyeoldegrove.targetcli.targetcli_iscsi_lun (6.0.0) — module
Install with ansible-galaxy collection install yeoldegrove.targetcli:==6.0.0
collections: - name: yeoldegrove.targetcli version: 6.0.0
module for handling iSCSI LUN objects in targetcli ('/iscsi/.../tpg1/luns').
- name: define new iSCSI LUN targetcli_iscsi_lun: wwn: 'iqn.1994-05.com.redhat:fastvm' backstore_type: 'block' backstore_name: 'test1'
- name: remove iSCSI LUN targetcli_iscsi_lun: wwn: 'iqn.1994-05.com.redhat:data' backstore_type: 'block' backstore_name: 'test2' state: 'absent'
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 LUN to all existing ACLs required: false type: bool backstore_name: default: null description: - name of backstore object required: true type: str backstore_type: default: null description: - type of backstore object required: true type: str