Default variables

tgt_packages

List of packages installed for iSCSI Target support.

tgt_packages: [ 'tgt' ]
tgt_iqn_date

Year and month when the Naming Authority of this iSCSI host was estabilished.

tgt_iqn_date: '{{ ansible_date_time.year + "-" + ansible_date_time.month }}'
tgt_iqn_authority

DNS domain name of the Naming Authority responsible for this iSCSI Target.

tgt_iqn_authority: '{{ ansible_domain }}'
tgt_iqn_base

iSCSI Qualified Name of this iSCSI Target host, will be saved in Ansible local facts to prevent changes related to the default date field.

tgt_iqn_base: '{{ (ansible_local.tgt.iqn_base
                   if (ansible_local|d() and ansible_local.tgt|d() and
                       ansible_local.tgt.iqn_base|d())
                   else ("iqn." + tgt_iqn_date + "." +
                         tgt_iqn_authority.split(".")[::-1] | join("."))) }}'
tgt_allow

List of IP addresses or CIDR networks which will be allowed to connect to iscsi-target service through the firewall. If none are specified, connections can be initiated from anywhere.

tgt_allow: []
tgt_options

Global tgt options specified as a YAML text block

tgt_options: ''
tgt_targets

List of iSCSI Targets configured on this host. See tgt_targets for more details.

tgt_targets: []