1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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:
Sandra McCann 2018-09-17 16:12:46 -04:00 committed by Alicia Cozine
parent 68e264e878
commit 7092dd7fbf

View file

@ -68,35 +68,26 @@ options:
"""
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:
- show version
provider: "{{ cli }}"
- asa_command:
- name: "Show ASA drops and memory"
asa_command:
commands:
- show asp drop
- show memory
provider: "{{ cli }}"
- asa_command:
- name: "Send repeat pings and wait for the result to pass 100%"
asa_command:
commands:
- show version
provider: "{{ cli }}"
context: system
- ping 8.8.8.8 repeat 20 size 350
wait_for:
- result[0] contains 100
retries: 2
"""
RETURN = """