# Nxos\_config module issue

**URL:** <https://forum.ansible.com/t/nxos-config-module-issue/33310>\
**Category:** Ansible Project\
**Created:** [July 2, 2020, 2:05pm UTC](https://forum.ansible.com/t/nxos-config-module-issue/33310 "2020-07-02T14:05:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 2, 2020, 2:05pm UTC](https://forum.ansible.com/t/nxos-config-module-issue/33310/1 "2020-07-02T14:05:42Z")

</div>

> > Hi Team

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 2, 2020, 3:01pm UTC](https://forum.ansible.com/t/nxos-config-module-issue/33310/2 "2020-07-02T15:01:22Z")

</div>

“through ansible” isn’t a playbook/task.

Provide the playbook and the invocation of it.

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [July 3, 2020, 8:28am UTC](https://forum.ansible.com/t/nxos-config-module-issue/33310/3 "2020-07-03T08:28:58Z")

</div>

Hello,

This seems to happen because the stderr regex in the NX-OS terminal plugin doesn’t catch “Can’t configure more than 8 IP Servers”. However, starting with Ansible 2.9, the stdout and stderr regexes were made configurable options. Please refer to [https://docs.ansible.com/ansible/latest/network/user\_guide/network\_debug\_troubleshooting.html#task-failure-due-to-mismatched-error-regex-within-command-response-using-network-cli-connection-type](https://docs.ansible.com/ansible/latest/network/user_guide/network_debug_troubleshooting.html#task-failure-due-to-mismatched-error-regex-within-command-response-using-network-cli-connection-type) for more information.

In this particular case, you can try adding the following to the task:  
vars:  
ansible\_terminal\_stderr\_re:

- pattern: “can’t configure (.\*)”  
flags: 're.I

Thanks!
