Merge pull request #4360 from alvaroaleman/bugfix/ios_command_docs

Make ios_command example working
reviewable/pr18780/r1
Peter Sprygada 8 years ago committed by GitHub
commit c15a84b690

@ -78,33 +78,34 @@ vars:
password: cisco password: cisco
transport: cli transport: cli
- name: run show version on remote devices tasks:
ios_command: - name: run show version on remote devices
commands: show version ios_command:
provider "{{ cli }}" commands: show version
provider "{{ cli }}"
- name: run show version and check to see if output contains IOS
ios_command: - name: run show version and check to see if output contains IOS
commands: show version ios_command:
wait_for: result[0] contains IOS commands: show version
provider "{{ cli }}" wait_for: result[0] contains IOS
provider "{{ cli }}"
- name: run multiple commands on remote nodes
ios_command: - name: run multiple commands on remote nodes
commands: ios_command:
- show version commands:
- show interfaces - show version
provider "{{ cli }}" - show interfaces
provider "{{ cli }}"
- name: run multiple commands and evaluate the output
ios_command: - name: run multiple commands and evaluate the output
commands: ios_command:
- show version commands:
- show interfaces - show version
wait_for: - show interfaces
- result[0] contains IOS wait_for:
- result[1] contains Loopback0 - result[0] contains IOS
provider "{{ cli }}" - result[1] contains Loopback0
provider: "{{ cli }}"
""" """
RETURN = """ RETURN = """

Loading…
Cancel
Save