summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorGabriele <gabrielegerbino@gmail.com>2016-10-02 15:14:43 -0400
committerPeter Sprygada <privateip@users.noreply.github.com>2016-10-02 15:14:43 -0400
commit423b4a59092db4cee0ec97e8e43e92cc1b16bd81 (patch)
tree6f82e30301617b1b10a6dfef0d9634b2590f40e3 /network
parent8afe2402dbc83eb624b6920a4f46aa9a26547c01 (diff)
downloadansible-modules-core-423b4a59092db4cee0ec97e8e43e92cc1b16bd81.tar.gz
Adding more details on DOCSTRING about how to use the module (#5121)
Diffstat (limited to 'network')
-rw-r--r--network/nxos/nxos_install_os.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/network/nxos/nxos_install_os.py b/network/nxos/nxos_install_os.py
index 566b03f5..4f5150e6 100644
--- a/network/nxos/nxos_install_os.py
+++ b/network/nxos/nxos_install_os.py
@@ -27,7 +27,10 @@ notes:
- The module will fail due to timeout issues, but the install will go on
anyway. Ansible's block and rescue can be leveraged to handle this kind
of failure and check actual module results. See EXAMPLE for more about
- this.
+ this. The first task on the rescue block is needed to make sure the
+ device has completed all checks and it started to reboot. The second
+ task is needed to wait the device to come back up. Last two tasks are
+ used to verify the installation process's been successful.
- Do not include full file paths, just the name of the file(s) stored on
the top level flash directory.
- You must know if your platform supports taking a kickstart image as a
@@ -62,6 +65,13 @@ EXAMPLES = '''
password: "{{ pwd }}"
transport: nxapi
rescue:
+ - name: Wait for device to perform checks
+ wait_for:
+ port: 22
+ state: stopped
+ timeout: 300
+ delay: 60
+ host: "{{ inventory_hostname }}"
- name: Wait for device to come back up
wait_for:
port: 22