See 
https://docs.ansible.com/ansible/devel/user_guide/playbooks_error_handling.html#defining-changed
 
<https://docs.ansible.com/ansible/devel/user_guide/playbooks_error_handling.html#defining-changed>
 for more details on changed_when.


> On Jul 2, 2020, at 9:20 AM, Karol Czeryna <czer...@gmail.com> wrote:
> 
> Hi Pushparaj,
> 
> You can try to use changed_when. Haven't used nxos_config unfortunately yet. 
> 
> Best,
> Karol
> 
>> On 2 Jul 2020, at 3:04 pm, Pushparaj Gothandam <rajthecomputer...@gmail.com> 
>> wrote:
>> 
>> Can anyone help on this?
>> 
>> On Wednesday, June 24, 2020 at 11:59:28 AM UTC+5:30, Pushparaj Gothandam 
>> wrote:
>> Any help would be appreciated !
>> 
>> On Sunday, June 21, 2020 at 9:44:30 AM UTC+5:30, Pushparaj Gothandam 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 Development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ansible-devel+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-devel/46fc695e-dbe2-4515-a9e7-1b888208bedfo%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-devel/1C068155-292C-439B-BDC6-EE55DF96A7A8%40gmail.com.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/9A1CED29-835B-4973-B2B6-302D44D822BC%40redhat.com.

Reply via email to