yeoldegrove / yeoldegrove.targetcli / 6.0.0 / module / targetcli_iscsi_portal TargetCLI portal module | "added in version" 2.0 of yeoldegrove.targetcli" Authors: Loïc (@psykotox) preview | supported by communityyeoldegrove.targetcli.targetcli_iscsi_portal (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 portals object in targetcli ('/iscsi/.../tpg1/portals').
- 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'
- name: define new iSCSI portal targetcli_iscsi_portal: wwn: 'iqn.2020-01.com.recisio.iscsi:alpha' portal_ip: '192.168.1.10'
- name: remove iSCSI portal targetcli_iscsi_portal: wwn: 'iqn.2020-01.com.recisio.iscsi:alpha' portal_ip: '192.168.1.10' 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 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