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 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f2395eec-3ad9-45b0-8c51-b744a335e658%40googlegroups.com.
