Guys i need to store value of commands at remote servers.which i run with shell module
but the value is not coming up.
it is coming line that
[root@station2 petch2]# cat prepatch.txt
[{“_ansible_parsed”: true, “changed”: true, “stdout”: “Linux station2.example.com 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux”, “_ansible_item_result”: true, “warnings”: , “delta”: “0:00:00.007163”, “stdout_lines”: [“Linux station2.example.com 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux”], “end”: “2018-08-27 13:44:59.407023”, “_ansible_no_log”: false, “start”: “2018-08-27 13:44:59.399860”, “cmd”: “uname -a”, “item”: “uname -a”, “stderr”: “”, “rc”: 0, “invocation”: {“module_name”: “command”, “module_args”: {“warn”: true, “executable”: null, “_uses_shell”: true, “_raw_params”: “uname -a”, “removes”: null, “creates”: null, “chdir”: null}}}, {“_ansible_parsed”: true, “changed”: true, “stdout”: “# Generated by NetworkManager\nsearch localdomain example.com\nnameserver 192.168.1.2”, “_ansible_item_result”: true, “warnings”: , “delta”: “0:00:00.008031”, “stdout_lines”: [“# Generated by NetworkManager”, “search localdomain example.com”, “nameserver 192.168.1.2”], “end”: “2018-08-27 13:45:00.090280”, “_ansible_no_log”: false, “start”: “2018-08-27 13:45:00.082249”, “cmd”: “cat /etc/resolv.conf”, “item”: “cat /etc/resolv.conf”, “stderr”: “”, “rc”: 0, “invocation”: {“module_name”: “command”, “module_args”: {“warn”: true, “executable”: null, “_uses_shell”: true, “_raw_params”: “cat /etc/resolv.conf”, “removes”: null, “creates”: null, “chdir”: null}}}][root@station2 petch2]#