i tried
---
- hosts: testleafs
gather_facts: no
connection: local
tasks:
- name: return show commands output
nxos_command:
commands:
- show version
- show running-config
host: "{{ inventory_hostname }}"
username: sssss
password: Satnum
register: output
- debug: var=output
Same issue....
false, "failed": true, "msg": "unable to open shell. Please see:
https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell"}
On Tuesday, August 15, 2017 at 1:24:05 PM UTC-5, Kai Stian Olstad wrote:
>
> On 14. aug. 2017 20:36, Sunil6057 wrote:
> > ---
> >
> > - name: Save running config to file (NXOS)
> > hosts: testleafs
> > gather_facts: no
> > connection: local
> >
> > tasks:
> > - name: VER
> > nxos_command:
> > commands: show version
> > host: "[[ inventory_homename }}"
>
> You should probably try with the correct brackets.
>
>
> --
> Kai Stian Olstad
>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6790d1dc-5cba-424b-8d79-d2639a33444e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.