cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
722
Views
0
Helpful
0
Replies

Ansible - nxos_facts when you have read only access to switches

lbanc
Level 1
Level 1

Hi,

 

I am a newbie to Ansible and had a question I was hoping someone maybe able to help with. I am using an Ansible playbook and have a task within the playbook to collect interface data from some nexus switches. The switches are actually operated by our managed service provider and I have only read only access to them. My problem is that the task fails with error message of "command timeout triggered, timeout value is 120 secs". Changing the timeout value has no effect. If I run same playbook against a switch where I have full privileges it runs just fine. Is there an option I can set somewhere to inform Ansible not to run the task with enable privileges or will this just not work unless it has them ? 

 

tasks:
- name: Gather Interface Statistics
nxos_facts:
gather_subset: interfaces
register: output

 

Thanks,

Lou

0 Replies 0