Zookeeper状态检查与Ansible失败
我试图通过拍摄/path/to/zookeeper/bin/zkServer.sh状态并检查rcvariables来findZookeeper进程的状态 。 但是ansible说输出没有输出中的rcvariables。 我附上了几个片段: 在这里,输出显示rc changed: [staging] => { "changed": true, "cmd": [ "/path/to/zookeeper/bin/zkServer.sh", "status" ], "delta": "0:00:00.222272", "end": "2017-10-17 14:30:23.937679", "invocation": { "module_args": { "_raw_params": "/path/to/zookeeper/bin/zkServer.sh", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true } }, "rc": 0, "start": "2017-10-17 14:30:23.715407", "stderr": "JMX enabled by default\nUsing config: /path/to/zookeeper/bin/../conf/zoo.cfg", "stderr_lines": [ […]