Add 'Wait for' example to asa_command module (#45190)
* Added example to register result of a ping test, including a wait_for command. * added names to tasks * updated examples to remove deprecated commands etc * removed group_var
This commit is contained in:
parent
68e264e878
commit
7092dd7fbf
1 changed files with 10 additions and 19 deletions
|
@ -68,35 +68,26 @@ options:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# Note: examples below use the following provider dict to handle
|
|
||||||
# transport and authentication to the node.
|
|
||||||
---
|
|
||||||
vars:
|
|
||||||
cli:
|
|
||||||
host: "{{ inventory_hostname }}"
|
|
||||||
username: cisco
|
|
||||||
password: cisco
|
|
||||||
authorize: yes
|
|
||||||
auth_pass: cisco
|
|
||||||
transport: cli
|
|
||||||
|
|
||||||
---
|
---
|
||||||
- asa_command:
|
- name: "Show the ASA version"
|
||||||
|
asa_command:
|
||||||
commands:
|
commands:
|
||||||
- show version
|
- show version
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- asa_command:
|
- name: "Show ASA drops and memory"
|
||||||
|
asa_command:
|
||||||
commands:
|
commands:
|
||||||
- show asp drop
|
- show asp drop
|
||||||
- show memory
|
- show memory
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- asa_command:
|
- name: "Send repeat pings and wait for the result to pass 100%"
|
||||||
|
asa_command:
|
||||||
commands:
|
commands:
|
||||||
- show version
|
- ping 8.8.8.8 repeat 20 size 350
|
||||||
provider: "{{ cli }}"
|
wait_for:
|
||||||
context: system
|
- result[0] contains 100
|
||||||
|
retries: 2
|
||||||
"""
|
"""
|
||||||
|
|
||||||
RETURN = """
|
RETURN = """
|
||||||
|
|
Loading…
Reference in a new issue