Aruba_command no output to my Bash

19 views
Skip to first unread message

Mac

unread,
Apr 17, 2020, 8:47:49 AM4/17/20
to Ansible Project
Hi 
As a newbie to Ansible i have simple question
for my understanding , if  do a "show version" via a Playbook on any Network device i will get the output to the bash is started the playbook right ?
for Example i to a 

~# ansible-playbook play.yml -i /etc/ansible/hosts 


PLAY [aruba_ap] **************************************************************************************************************************************************************************************************************************************************************


TASK [run show version on remote devices] ************************************************************************************************************************************************************************************************************************************

[WARNING]: Platform linux on host 192.168.100.11 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See

https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.

ok: [192.168.100.11]


PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************

192.168.100.11             : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


~#

i would expect the output from the "show version" somewhere after "ok: [192.168.100.11]"but that's not the Case. 

My Playbook looks like this

---

-

  connection: local

  hosts: aruba_ap

  gather_facts: no

  tasks:

    - name: "run show version on remote devices"

      aruba_command:

        commands:

         - show version


so what do i have to add to the playbook (or somewhere else )to get the output of the show commands immediately after the command was send on a per host view?

Regards Markus


    


Reply all
Reply to author
Forward
0 new messages