Re: [ansible-project] ios_command multiple commands

2019-01-05 Thread Eduardo Nunes Pereira
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

[ansible-project] 'ERROR!' Telnet 'is not a valid attribute to play

2019-01-08 Thread Eduardo Nunes Pereira
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

[ansible-project] ios_command multiple commands

2019-01-04 Thread Eduardo Nunes Pereira
- 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/{{

[ansible-project] Re: 'ERROR!' Telnet 'is not a valid attribute to play

2019-01-09 Thread Eduardo Nunes Pereira
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

[ansible-project] Hosts with multiple users.

2019-02-12 Thread Eduardo Nunes Pereira
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

RES: [ansible-project] Hosts with multiple users.

2019-02-14 Thread Eduardo Nunes Pereira
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