yeoldegrove / yeoldegrove.targetcli / 6.0.0 / module / targetcli_backstore TargetCLI backstore module | "added in version" 2.0 of yeoldegrove.targetcli" Authors: Ondrej Famera (@OndrejHome) preview | supported by communityyeoldegrove.targetcli.targetcli_backstore (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 backstore objects in targetcli ('/backstores').
- name: define new block backstore from disk/LV /dev/c7vg/LV1 targetcli_backstore: backstore_type: 'block' backstore_name: 'test1' options: '/dev/c7vg/LV1'
- name: define new block backstore from disk/LV /dev/c7vg/LV2 with attributes targetcli_backstore: backstore_type: 'block' backstore_name: 'test2' options: '/dev/c7vg/LV2' attributes: 'emulate_tpu=1'
- name: remove block backstore from disk/LV /dev/c7vg/LV2 targetcli_backstore: backstore_type: 'block' backstore_name: 'test2' state: 'absent'
state: choices: - present - absent default: present description: - Should the object be present or absent from TargetCLI configuration required: false type: str options: default: null description: - options for create operation when creating backstore object required: false type: str attributes: default: null description: - Attributes for the defined LUN required: false type: str backstore_name: default: null description: - Name of backtore object in TargetCLI required: true type: str backstore_type: default: null description: - Type of storage in TargetCLI (block, fileio, pscsi, ramdisk) required: true type: str