8e19ab178a
Change: Rather than only using config, have base connection plugins fall back to play_context. Test Plan: - Tested ansible-connection logic against an IOS device - Tested -k against a VM - CI Signed-off-by: Rick Elrod <rick@elrod.me>
14 lines
278 B
YAML
14 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'
|