1---
2
3  - name: Test sonic single command
4    sonic_command:
5       commands: 'show interface status'
6    register: result
7
8  - assert:
9      that:
10        - "result.changed == false"
11        - "result.stdout is defined"
12
13  - name: Test sonic multiple commands
14    sonic_command:
15       commands:
16         - 'show platform'
17         - 'show system'
18    register: result
19
20  - assert:
21      that:
22        - "result.changed == false"
23        - "result.stdout is defined"
24        - "result.stdout | length == 2"
25