ansible/test/integration/targets/network_cli/passworded_user.yml
Rick Elrod 61a1fe1d7d
Fix network_cli test to use a trap for cleanup ()
Signed-off-by: Rick Elrod <rick@elrod.me>
2020-05-29 15:45:33 -05:00

14 lines
272 B
YAML

- 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'