--- # java health check v2 - hosts: localhost tasks: - name: 检查java nginx 健康状态 health_check: name: status check url: "http://{{ item }}/status_check" with_items: - "{{ groups['java-nginx'] }}" - name: 检查java gateway 健康状态 health_check: name: 获取首页资源位 url: "http://{{ item }}:8080/gateway/?method=app.product.data&physical_channel=2&business_line=yohobuy&client_secret=8fe7e264ecdba3c133cc412510ab7f93&gender=2%2C3&session_key=386ab6918b8e53f1200b7c497b6afb46&v=7&app_version=6.7.9&client_type=android&yh_channel=2&screen_size=1080x1920&uid=9963947&udid=8665000245700228be32e1760c0129a&product_skn=51955044" with_items: - "{{ groups['java-gateway'] }}" - name: 检查java order 健康状态 health_check: name: 查询支付列表 url: "http://{{ item }}:8084/order/paymentInfo/findPayList" content_type: json params: '{"uid":111}' with_items: - "{{ groups['java-order'] }}" - name: 检查java promotion 健康状态 health_check: name: 查询用户礼包 url: "http://{{ item }}:8085/promotion/couponBag/getCouponsBags" content_type: json params: '{"uid":10166061}' with_items: - "{{ groups['java-promotion'] }}" - name: 检查java resources 健康状态 health_check: name: 查询系统配置 url: "http://{{ item }}:8087/resources/config/querySysConfig" content_type: json params: '{"key":"auth_mode"}' with_items: - "{{ groups['java-resources'] }}" - name: 检查java product健康状态 health_check: name: 获取商品详情 url: "http://{{ item }}:8083/product/product/queryProductBasicInfo" content_type: json params: '{"param":439486}' with_items: - "{{ groups['java-product'] }}" - name: 检查java message 健康状态 health_check: name: 获取商品详情 url: "http://{{ item }}:8086/message/TokenRest/getUserIosToken" content_type: json params: '{"uid":"2996246","msgChannel":2919}' with_items: - "{{ groups['java-message'] }}" - name: 检查java sns 健康状态 health_check: name: 获取我的晒单列表 url: "http://{{ item }}:8082/sns/show/ownerShareList" content_type: json params: '{"page":1,"limit":1,"uid":9963947}' with_items: - "{{ groups['java-sns'] }}" - name: 检查java users 健康状态 health_check: name: 获取用户wechat信息 url: "http://{{ item }}:8081/users/WechatCsRest/getIsNeedAddWechatCS" content_type: json params: '{"uid":58347385}' with_items: - "{{ groups['java-users'] }}" - name: 检查java uic 健康状态 health_check: name: 获取商品详情 url: "http://{{ item }}:8096/uic/profile/getUserProfile" content_type: json params: '{"uid":58347385}' with_items: - "{{ groups['java-uic'] }}" - name: 检查java brower 健康状态 health_check: name: 获取用户浏览记录列表 url: "http://{{ item }}:8092/brower/listBrowseNew" content_type: json params: '{"uid":58347385,"page":1,"limit":10}' with_items: - "{{ groups['java-brower'] }}" - name: 检查java risk 健康状态 health_check: name: 查询货到付款限制 url: "http://{{ item }}:8097/risk/codlimit/queryCodLimitForOrder" content_type: json params: '{"uid":"10166061"}' with_items: - "{{ groups['java-risk'] }}" - name: 检查java wechat 健康状态 health_check: name: 获取回复规则列表 url: "http://{{ item }}:8094/wechat/wechatManage/getRuleList" content_type: form params: '{"account": 1, "page":1, "rows": 10}' with_items: - "{{ groups['java-wechat'] }}" - name: 检查java activity健康状态 health_check: name: 获取帮助信息 url: "http://{{ item }}:8090/activity/queryHelpInfo" content_type: json params: '{"uid":58305887,"limitProductCode":"2018090415221551"}' with_items: - "{{ groups['java-activity'] }}" - name: 检查java bigdata健康状态 health_check: name: 获取推荐SKN列表 url: "http://{{ item }}:8091/bigdata/bigdata/getRecommendSknList" content_type: json params: '{"uid":0,"rec_pos":100001}' with_items: - "{{ groups['java-bigdata'] }}" - name: 检查java search 健康状态 health_check: name: 查询卫衣 url: "http://{{ item }}:8080/yohosearch/fuzzy/productList.json?query=卫衣&viewNum=30&uid=13838876" with_items: - "{{ groups['search-service'] }}" - name: 检查java ufo fore 健康状态 health_check: name: 查询ufo产品 url: "http://{{ item }}:8080/ufo-gateway/?method=ufo.product.data&product_id=10005859" with_items: - "{{ groups['java-ufo-fore'] }}"