mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
921417c4b5
* <!--- Describe the change below, including rationale and design decisions --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> According to issue 3767, adding a session rescan flag to add and utilize mapped_luns after login into a portal and target. <!--- Pick one below and delete the rest --> - Feature Pull Request <!--- Write the short name of the module, plugin, task or feature below --> open_iscsi rescan flag <!--- Include additional information to help people understand the change here --> <!--- A step-by-step reproduction of the problem is helpful if there is no related issue --> <!--- Paste verbatim command output below, e.g. before and after your change --> ``` yaml - name: Rescan Targets open_iscsi: rescan: true target: "{{ item.0 }}" register: iscsi_rescan loop: - iqn.1994-05.com.redhat:8c4ea31d28e tags: - rescan ``` ```bash TASK [Rescan Targets] ******************************************************************************************************************************************************************** changed: [node1] => (item=['iqn.1994-05.com.redhat:8c4ea31d28e']) changed: [node2] => (item=['iqn.1994-05.com.redhat:8c4ea31d28e']) TASK [Output rescan output] ************************************************************************************************************************************************************** ok: [node1] => { "iscsi_rescan": { "changed": true, "msg": "All items completed", "results": [ { "ansible_loop_var": "item", "changed": true, "failed": false, "invocation": { "module_args": { "auto_node_startup": null, "discover": false, "login": null, "node_auth": "CHAP", "node_pass": null, "node_user": null, "port": "3260", "portal": null, "rescan": true, "show_nodes": false, "target": "iqn.1994-05.com.redhat:8c4ea31d28e'" } }, "item": [ "iqn.1994-05.com.redhat:8c4ea31d28e" ], "sessions": [ "Rescanning session [sid: 3, target: iqn.1994-05.com.redhat:8c4ea31d28e, portal: 127.0.0.1,3260]", "Rescanning session [sid: 1, target: iqn.1994-05.com.redhat:8c4ea31d28e, portal: 127.0.0.2,3260]", "Rescanning session [sid: 2, target: iqn.1994-05.com.redhat:8c4ea31d28e, portal: 127.0.0.3,3260]", "" ] } ] } } ok: [node2] => { "iscsi_rescan": { "changed": true, "msg": "All items completed", "results": [ { "ansible_loop_var": "item", "changed": true, "failed": false, "invocation": { "module_args": { "auto_node_startup": null, "discover": false, "login": null, "node_auth": "CHAP", "node_pass": null, "node_user": null, "port": "3260", "portal": null, "rescan": true, "show_nodes": false, "target": "iqn.1994-05.com.redhat:8c4ea31d28e" } }, "item": [ "iqn.1994-05.com.redhat:8c4ea31d28e" ], "sessions": [ "Rescanning session [sid: 3, target: iqn.1994-05.com.redhat:8c4ea31d28e, portal: 127.0.0.1,3260]", "Rescanning session [sid: 2, target: iqn.1994-05.com.redhat:8c4ea31d28e, portal: 127.0.0.2,3260]", "Rescanning session [sid: 1, target: iqn.1994-05.com.redhat:8c4ea31d28e, portal: 127.0.0.3,3260]", "" ] } ] } } ``` * minor_changes: - open_iscsi - extended module to allow rescanning of established session for one or all targets. (https://github.com/ansible-collections/community.general/issues/3763) * * fixed commend according to the recommendation. * Update plugins/modules/system/open_iscsi.py Co-authored-by: Felix Fontein <felix@fontein.de> |
||
---|---|---|
.. | ||
aix_devices.py | ||
aix_filesystem.py | ||
aix_inittab.py | ||
aix_lvg.py | ||
aix_lvol.py | ||
alternatives.py | ||
awall.py | ||
beadm.py | ||
capabilities.py | ||
cronvar.py | ||
crypttab.py | ||
dconf.py | ||
dpkg_divert.py | ||
facter.py | ||
filesystem.py | ||
gconftool2.py | ||
interfaces_file.py | ||
iptables_state.py | ||
java_cert.py | ||
java_keystore.py | ||
kernel_blacklist.py | ||
launchd.py | ||
lbu.py | ||
listen_ports_facts.py | ||
locale_gen.py | ||
lvg.py | ||
lvol.py | ||
make.py | ||
mksysb.py | ||
modprobe.py | ||
nosh.py | ||
ohai.py | ||
open_iscsi.py | ||
openwrt_init.py | ||
osx_defaults.py | ||
pam_limits.py | ||
pamd.py | ||
parted.py | ||
pids.py | ||
puppet.py | ||
python_requirements_info.py | ||
runit.py | ||
sap_task_list_execute.py | ||
sefcontext.py | ||
selinux_permissive.py | ||
selogin.py | ||
seport.py | ||
shutdown.py | ||
solaris_zone.py | ||
ssh_config.py | ||
svc.py | ||
syspatch.py | ||
sysrc.py | ||
sysupgrade.py | ||
timezone.py | ||
ufw.py | ||
vdo.py | ||
xfconf.py | ||
xfconf_info.py | ||
xfs_quota.py |