oblem is variable I.e output.stdout will only contain outputs
> only. Means issued command will not be there.
>
> Try with blockinfile module to have command1
> output of command1
> Command2
> Output of command2
>
> Thanks,
> Veera
>
>
> On Sat, 5 Jan 2019, 01:21 E
Hello Everyone,
I use ansible 2.7, I'm trying to use the 'telnet' module to connect to
Cisco devices with IOS but it has the following error: '*ERROR!' Telnet 'is
not a valid attribute to play "*any ideas?
--
You received this message because you are subscribed to the Google Groups
"Ansible
- name: Network Getting Started First Playbook
connection: network_cli
gather_facts: false
hosts: lab
tasks:
- name: run multiple commands on remote nodes
ios_command:
commands:
- show run
register: output
- name: save output
copy:
content: "{{ output.stdout[0] }}"
dest: "/etc/ansible/backup/{{
or appears to have been in '/etc/ansible/telnet.yml': line 8, column
3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: send configuration commands to IOS
^ here
Em terça-feira, 8 de janeiro de 2019 16:54:58 UTC-2, Eduardo
Someone could help me with this case where I have multiple hosts and for
these hosts I do not know which exact user but I have a list with some
possible possible users. inside the hosts file I create the group: vars but
I can only put a single user.
--
You received this message because you
osts that it doesn't get a response from? (Although, to be fair, I
don't entirely know how you'd do that).
Perhaps you'd be better off explaining what you're trying to do?
--
Jon "The Nice Guy" Spriggs
@jontheniceguy everywhere...
https://jon.sprig.gs
On Tue, 12 Feb 2019 at 19:14, Ed