mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
278 B
YAML
15 lines
278 B
YAML
4 years ago
|
- 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'
|