检查python版本通过导致错误的结果
您好我正在检查使用可靠的任务python的版本但是我得到的输出值在stderrvariables而不是标准输出。 这是我的任务检查pthon版本。 — – shell: "python –version" register: python_installed 这是任务的输出: changed: [172.17.0.3] => { "changed": true, "cmd": "python –version", "delta": "0:00:00.259578", "end": "2017-06-30 03:43:44.341772", "invocation": { "module_args": { "_raw_params": "python –version", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true } }, "rc": 0, "start": "2017-06-30 03:43:44.082194", "stderr": "Python 2.6.6", "stderr_lines": [ […]