blob: 5538684c5e69ea9ea101617a7961a50340299444 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
- hosts: vyos
gather_facts: false
tasks:
- name: Run whoami
vyos.vyos.vyos_command:
commands:
- whoami
register: whoami
- assert:
that:
- whoami is successful
- whoami.stdout_lines[0][0] == 'atester'
|