========================================================================================
ansible 2.2.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
========================================================================================
I am using below ---playbook to show the version of a Cisco router, and
getting the below error.
- hosts: "{{ target }}"
connection: local
tasks:
- name: Defining the provider
set_fact:
provider:
host: "{{ target }}"
username: "{{ network_device_user }}"
password: "{{ ansible_ssh_pass }}"
auth_pass: "{{ network_device_enable_pass }}"
port: "{{ port }}"
transport: cli
timeout: 50
- name: Run Show Version
ios_command:
provider: "{{ provider }}"
authorize: yes
commands:
- show version
register: version
- debug: var=version.stdout_lines
=========================================================================================
fatal: [10.251.58.221]: FAILED! => {"changed": false, "failed": true,
"msg": "timeout trying to send command: enable\
r"}
=========================================================================================
If am removing the "authorize: yes" from the task, it works..
Do we have any other way to work the task with authorize ( enabled mode).
==========================================================================================
--
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/577407cd-a333-4020-b932-58c79d724559%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.