java.health_check.yml 978 Bytes
---

- hosts: java-gateway
  tasks:
    - name: 检查java gateway 健康情况
      health_check:
        name: 获取首页资源位
        url: "http://127.0.0.1:8080/gateway/operations/api/v5/resource/home?app_version=6.7.0&gender=1,3&os_version=android8.0.0:ALP-AL00&client_type=android&yh_channel=1&uid=50892268&v=7&fromPage=iFP_Home&limit=100&session_key=bc8ff6db8cd0ab303cad58f225fe51df&business_line=yohobuy&screen_size=1080x1920&client_secret=64433041d137d825bc4536ba3ad3646a&page=1&physical_channel=1&udid=868035035832085db637f6cb043d7e0&content_code=9cb6138be8e60c96f48107da481816c2"
      register: result
    - debug:
       var: result
  remote_user: root
  
# order 
- hosts: java-order
  tasks:
    - health_check:
        name: 获取商品详情
        url: "http://127.0.0.1:8084/order/orderInfo/getOrderList"
        content_type: json
        params: '{"param":439486}'
      register: result
    - debug: 
       var: result
  remote_user: root