summaryrefslogtreecommitdiff
path: root/system/open_iscsi.py
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-02 15:48:22 +0000
committerJohn R Barker <john@johnrbarker.com>2016-12-02 15:48:22 +0000
commit58a0ffa553023ff212d69e815ba68ef50c69a8f1 (patch)
treeb4102d45a18e3e0ab9b9e56e2b10bc7076950c1e /system/open_iscsi.py
parent2fdc5e09308897776f097d0b29b43770f522c665 (diff)
downloadansible-modules-extras-58a0ffa553023ff212d69e815ba68ef50c69a8f1.tar.gz
Native YAML - system (#3625)
* Native YAML - system * Remove comment that is not applicable to the code
Diffstat (limited to 'system/open_iscsi.py')
-rw-r--r--system/open_iscsi.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/system/open_iscsi.py b/system/open_iscsi.py
index 74349ce8..77586289 100644
--- a/system/open_iscsi.py
+++ b/system/open_iscsi.py
@@ -88,18 +88,28 @@ options:
EXAMPLES = '''
# perform a discovery on 10.1.2.3 and show available target nodes
-- open_iscsi: show_nodes=yes discover=yes portal=10.1.2.3
+- open_iscsi:
+ show_nodes: yes
+ discover: yes
+ portal: 10.1.2.3
# discover targets on portal and login to the one available
# (only works if exactly one target is exported to the initiator)
-- open_iscsi: portal={{iscsi_target}} login=yes discover=yes
+- open_iscsi:
+ portal: '{{ iscsi_target }}'
+ login: yes
+ discover: yes
# description: connect to the named target, after updating the local
# persistent database (cache)
-- open_iscsi: login=yes target=iqn.1986-03.com.sun:02:f8c1f9e0-c3ec-ec84-c9c9-8bfb0cd5de3d
+- open_iscsi:
+ login: yes
+ target: 'iqn.1986-03.com.sun:02:f8c1f9e0-c3ec-ec84-c9c9-8bfb0cd5de3d'
# description: discconnect from the cached named target
-- open_iscsi: login=no target=iqn.1986-03.com.sun:02:f8c1f9e0-c3ec-ec84-c9c9-8bfb0cd5de3d"
+- open_iscsi:
+ login: no
+ target: 'iqn.1986-03.com.sun:02:f8c1f9e0-c3ec-ec84-c9c9-8bfb0cd5de3d'
'''
import glob