~# 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