15 lines
278 B
YAML
15 lines
278 B
YAML
|
- hosts: vyos-1-1-8
|
||
|
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'
|