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
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!

--
Nilashish Chakraborty
Software Engineer, Ansible Network

On Thu, Jul 2, 2020 at 8:31 PM Dick Visser <dick.vis...@geant.org> wrote:

> "through ansible" isn't a playbook/task.
> Provide the playbook and the invocation of it.
>
>
>
> On Thu, 2 Jul 2020 at 16:05, rajthecomputerguy <
> rajthecomputer...@gmail.com> wrote:
>
>> Hi Team
>>>>
>>>> nxos_config module where Ansible cannot able to return below
>>>> highlighted information from device rather it returns the config as
>>>> changed.
>>>>
>>>> Is this a bug? please help
>>>>
>>>> Manual:
>>>>
>>>> lab.device.local(config)# logging server x.x.x.x 6
>>>> Can't configure more than 8 IP Servers
>>>>
>>>> Through Ansible:
>>>>
>>>> changed: [lab.device.local] => {
>>>>     "changed": true,
>>>>     "commands": [
>>>>         "logging server x.x.x.x 6",
>>>>         "logging server x.x.x.x 6"
>>>>     ],
>>>>     "invocation": {
>>>>         "module_args": {
>>>>             "after": null,
>>>>             "auth_pass": null,
>>>>             "authorize": null,
>>>>             "backup": false,
>>>>             "before": null,
>>>>             "defaults": false,
>>>>             "diff_against": null,
>>>>             "diff_ignore_lines": null,
>>>>             "force": false,
>>>>             "host": null,
>>>>             "intended_config": null,
>>>>             "lines": [
>>>>                 "logging server x.x.x.x 6",
>>>>                 "logging server x.x.x.x 6"
>>>>             ],
>>>>             "match": "line",
>>>>             "parents": null,
>>>>             "password": null,
>>>>             "port": null,
>>>>             "provider": null,
>>>>             "replace": "line",
>>>>             "replace_src": null,
>>>>             "running_config": null,
>>>>             "save": false,
>>>>             "save_when": "never",
>>>>             "src": null,
>>>>             "ssh_keyfile": null,
>>>>             "timeout": null,
>>>>             "transport": null,
>>>>             "use_ssl": null,
>>>>             "username": null,
>>>>             "validate_certs": null
>>>>         }
>>>>     },
>>>>     "updates": [
>>>>         "logging server x.x.x.x 6",
>>>>         "logging server x.x.x.x 6"
>>>>     ]
>>>> }
>>>>
>>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/1e5a4b39-e427-4160-a2e4-81a7ba29a415o%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/1e5a4b39-e427-4160-a2e4-81a7ba29a415o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwM5dnv07Sb_kTswuH_JrTgsSf7psFmukr4Ekb9cRK1jmg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL8fbwM5dnv07Sb_kTswuH_JrTgsSf7psFmukr4Ekb9cRK1jmg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAODNBSG690xSCFi_dBj1UC3bg2PC4Sukq%2B16m-fCxcpfJeukyA%40mail.gmail.com.

Reply via email to