在Ansible中,您会在末尾(摘要)获得一个输出,显示失败的x编号。对我来说,这通常在0到1之间。唯一的问题是,从超时到无法连接到身份验证问题,都有很多不同类型的故障。
有没有办法让Ansible更严格地解析此数据。还是有人对程序有任何建议来对此进行解析?
以下是一些示例的输出:
8/22/2019 16:36:49,201 p=27361 u=root | KeyJL-E10 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,201 p=27361 u=root | KeyJL-E100 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,201 p=27361 u=root | KeyJL-E101 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,201 p=27361 u=root | KeyJL-E102 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,201 p=27361 u=root | KeyJL-E103 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E104 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E106 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E107 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E108 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E109 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E11 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E110 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,202 p=27361 u=root | KeyJL-E111 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E112 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E113 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E114 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E115 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E116 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E117 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E118 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E119 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,203 p=27361 u=root | KeyJL-E12 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E120 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E121 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E122 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E123 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E124 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E125 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E126 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E127 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,204 p=27361 u=root | KeyJL-E128 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E129 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E13 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E130 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E131 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E132 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E133 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E134 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E135 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E136 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,205 p=27361 u=root | KeyJL-E137 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E138 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E14 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E140 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E141 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E142 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E143 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E144 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,206 p=27361 u=root | KeyJL-E145 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E146 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E147 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E148 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E149 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E15 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E150 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E151 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E152 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,207 p=27361 u=root | KeyJL-E153 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E154 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E155 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E156 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E157 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E158 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E159 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E16 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E160 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,208 p=27361 u=root | KeyJL-E161 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E162 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E163 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E164 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E165 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E166 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E167 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E168 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E169 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E17 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,209 p=27361 u=root | KeyJL-E170 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E171 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E172 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E174 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E175 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E176 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E177 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E178 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E179 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,210 p=27361 u=root | KeyJL-E18 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E180 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E181 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E182 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E183 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E184 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E185 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E186 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,211 p=27361 u=root | KeyJL-E187 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E188 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E189 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E19 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E190 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E191 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E192 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E193 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E194 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,212 p=27361 u=root | KeyJL-E195 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E196 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E197 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E198 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E199 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E20 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E200 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E201 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E202 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E203 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,213 p=27361 u=root | KeyJL-E204 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E205 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E206 : ok=3 changed=0 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E208 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E209 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E21 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E210 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,214 p=27361 u=root | KeyJL-E211 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,215 p=27361 u=root | KeyJL-E212 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,215 p=27361 u=root | KeyJL-E213 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,215 p=27361 u=root | KeyJL-E214 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,215 p=27361 u=root | KeyJL-E215 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,215 p=27361 u=root | KeyJL-E216 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,215 p=27361 u=root | KeyJL-E217 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,216 p=27361 u=root | KeyJL-E218 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,216 p=27361 u=root | KeyJL-E219 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
8/22/2019 16:36:49,216 p=27361 u=root | KeyJL-E22 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,216 p=27361 u=root | KeyJL-E220 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,216 p=27361 u=root | KeyJL-E221 : ok=3 changed=1 unreachable=0 failed=0 rescued=0 ignored=0
8/22/2019 16:36:49,216 p=27361 u=root | KeyJL-E222 : ok=0 changed=0 unreachable=0 failed=1 rescued=0 ignored=0
2019-08-22 16:17:34,189 p=27361 u=root | fatal: 1/310 [KeyJL-E4]: FAILED! => {"msg": "Invalid/incorrect username/password. Authentication failed."}
2019-08-22 16:18:02,099 p=27361 u=root | fatal: 11/310 [KeyJL-E7]: FAILED! => {"msg": "timed out"}
2019-08-22 16:18:04,610 p=27361 u=root | fatal: 12/310 [KeyJL-E9]: FAILED! => {"msg": "timed out"}
2019-08-22 16:18:39,382 p=27361 u=root | fatal: 48/310 [KeyJL-E55]: FAILED! => {"msg": "[Errno None] Unable to connect to port 30055 on 173.95.54.227"}
基本上,我希望能够解析此信息,以便可以在Ansible或其他内部识别出致命错误。