mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Fixed indenting in samples.
This commit is contained in:
parent
9fafe5e143
commit
1b52acade8
1 changed files with 10 additions and 10 deletions
|
@ -191,10 +191,10 @@ For example::
|
||||||
---
|
---
|
||||||
- name: wait for interface to be admin enabled
|
- name: wait for interface to be admin enabled
|
||||||
eos_command:
|
eos_command:
|
||||||
commands:
|
commands:
|
||||||
- show interface Ethernet4 | json
|
- show interface Ethernet4 | json
|
||||||
waitfor:
|
waitfor:
|
||||||
- "result[0].interfaces.Ethernet4.interfaceStatus eq connected"
|
- "result[0].interfaces.Ethernet4.interfaceStatus eq connected"
|
||||||
|
|
||||||
In the above example task, the command :code:`show interface Ethernet4 | json`
|
In the above example task, the command :code:`show interface Ethernet4 | json`
|
||||||
is executed on the remote device and the results are evaluated. If
|
is executed on the remote device and the results are evaluated. If
|
||||||
|
@ -210,12 +210,12 @@ results in an interface. For instance::
|
||||||
---
|
---
|
||||||
- name: wait for interfaces to be admin enabled
|
- name: wait for interfaces to be admin enabled
|
||||||
eos_command:
|
eos_command:
|
||||||
commands:
|
commands:
|
||||||
- show interface Ethernet4 | json
|
- show interface Ethernet4 | json
|
||||||
- show interface Ethernet5 | json
|
- show interface Ethernet5 | json
|
||||||
waitfor:
|
waitfor:
|
||||||
- "result[0].interfaces.Ethernet4.interfaceStatus eq connected"
|
- "result[0].interfaces.Ethernet4.interfaceStatus eq connected"
|
||||||
- "result[1].interfaces.Ethernet4.interfaceStatus eq connected"
|
- "result[1].interfaces.Ethernet4.interfaceStatus eq connected"
|
||||||
|
|
||||||
In the above example, two commands are executed on the
|
In the above example, two commands are executed on the
|
||||||
remote device, and the results are evaluated. By specifying the result
|
remote device, and the results are evaluated. By specifying the result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue