# Need assist with Ansible conn to Cisco router

**URL:** <https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196>\
**Category:** Ansible Project\
**Created:** [January 12, 2022, 9:32pm UTC](https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196 "2022-01-12T21:32:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_Day](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Post date:** [January 12, 2022, 9:32pm UTC](https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196/1 "2022-01-12T21:32:44Z")

</div>

It’s pretty basic playbook so not sure why its not working.

- name: Config Sys  
hosts: router2  
vars:

ansible\_network\_os: ios  
ansible\_connection: network\_cli  
ansible\_user: Mxxxxx  
ansible\_password: password  
ansible\_become: yes  
ansible\_become\_password: enablepass  
ansible\_become\_method: enable

tasks:

- name: Do not gather hardware facts  
ios\_facts:  
gather\_subset:
- “!hardware”

This is the error output:

The full traceback is:  
WARNING: The below traceback may _not_ be related to the actual failure.  
File “/tmp/ansible\_ios\_facts\_payload\_Hc8MOY/ansible\_ios\_facts\_payload.zip/ansible/module\_utils/network/common/network.py”, line 229, in get\_capabilities  
capabilities = Connection(module.\_socket\_path).get\_capabilities()  
File “/tmp/ansible\_ios\_facts\_payload\_Hc8MOY/ansible\_ios\_facts\_payload.zip/ansible/module\_utils/connection.py”, line 185, in **rpc**  
raise ConnectionError(to\_text(msg, errors=‘surrogate\_then\_replace’), code=code)  
fatal: [stage-2]: FAILED! =\> {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“auth\_pass”: null,  
“authorize”: null,  
“gather\_network\_resources”: null,  
“gather\_subset”: [  
“!hardware”  
],  
“host”: null,  
“password”: null,  
“port”: null,  
“provider”: null,  
“ssh\_keyfile”: null,  
“timeout”: null,  
“username”: null  
}  
},  
“msg”: “Internal error”  
}

---

<div class="post-metadata">

**Author:** ![dulhaver](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dulhaver/32/1061_2.png) [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Post date:** [January 13, 2022, 8:03am UTC](https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196/2 "2022-01-13T08:03:22Z")

</div>

hi Sharon

not being very well versed with Ansible myself yet this has cought my attention

ansible\_become: yes

I would have though this should be only:

become: yes

---

<div class="post-metadata">

**Author:** ![Sharon\_Day](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Post date:** [January 13, 2022, 12:44pm UTC](https://forum.ansible.com/t/need-assist-with-ansible-conn-to-cisco-router/36196/3 "2022-01-13T12:44:01Z")

</div>

Thanks for the response but I did confirm with the Network Automation Cookbook that it is indeed supposed to be ansible\_become. I did try it though and got this error message.

[WARNING]: Found variable using reserved name: become
