1---
2
3
4  - name: Test sonic single command with wait_for
5    sonic_command:
6       commands: 'show platform '
7       wait_for:
8         - result[0] contains Del
9    register: result
10
11  - assert:
12      that:
13        - "result.changed == false"
14        - "result.stdout is defined"
15
16  - name: Test sonic multiple command with wait_for
17    sonic_command:
18       commands:
19         - 'show platform'
20         - 'show system'
21       wait_for:
22         - result[0] contains Dell
23         - result[1] contains sonic
24    register: result
25
26  - assert:
27      that:
28        - "result.changed == false"
29        - "result.stdout is defined"
30