问与答 ansible json 数据过滤

SQGE · 2019年12月25日 · 最后由 lework 回复于 2019年12月25日 · 128 次阅读

想通过 ansible-playbook 通过 nexus api 去查询最新日期的获取制品下载的最新地址

shell 实现方式已经实现:
"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip"

shell 脚本

curl -s -u {{nexus_user}}:{{nexus_pass}} -X GET '{{nexu_pkg_url}}' |jq -r '.items[].assets[].downloadUrl'| grep med3|grep uat  |grep upp-all |sort -rh  |head -n1
ansible playbook 信息

目前已经取到 url_info 变量,怎么通过 ansible 类似上面 shell grep 条件进行处理

---
- hosts:  192.168.132.37
  gather_facts: no
  tasks:
    - name: test json
      uri:
        url: 'http://192.168.132.37:7443/service/rest/v1/search?repository=pkg'
        method: GET
        return_content: yes
        status_code: 200
        user: admin
        password: password
        validate_certs: no
        force_basic_auth: yes
        body_format: json
      register: nexus_json
    - debug: var=nexus_json

    - name: nexus url info
      set_fact:
        url_info: "{{ nexus_json.json | json_query(downloadUrl) }}"
      vars:
        downloadUrl: "items[].assets[].downloadUrl"

    - debug: var=url_info
ansible-play 执行日志流

PLAY [192.168.132.37] *************************************************************************************************************************************************

TASK [test json] ******************************************************************************************************************************************************
ok: [192.168.132.37]

TASK [debug] **********************************************************************************************************************************************************
ok: [192.168.132.37] => {
    "nexus_json": {
        "ansible_facts": {
            "discovered_interpreter_python": "/usr/bin/python"
        }, 
        "changed": false, 
        "connection": "close", 
        "content": "{\n  \"items\" : [ {\n    \"id\" : \"cGtnOjZkZmRhMGE4NDNmNDIwMWQ4NTgxZmI5NGMwZWZjNTU2\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/test/yt-fee-service/20191224131820\",\n    \"name\" : \"pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip\",\n      \"path\" : \"pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip\",\n      \"id\" : \"cGtnOjNmNWNhZTAxNzYwMjMzYjZjM2NiMTFmODIzNDlmNGQz\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"98be5a90ada961727e56a1980186a9142423d082\",\n        \"md5\" : \"353a4f737789ee51a153a12c17e71026\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmYxMGJkMDU5M2RlM2I1ZTQ5YTliODZhYWNhZjhjMjBi\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/test/yt-fee-service/20191224131818\",\n    \"name\" : \"pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip\",\n      \"path\" : \"pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip\",\n      \"id\" : \"cGtnOmY4OThiMzkwM2NiOTljNTkxMmVjMzZlN2ZlZDhkNTQ3\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"577b059f3ffb1ecdf85b515b1a93bff465b794c2\",\n        \"md5\" : \"af4f735856d56df2049c445d6e24bb25\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmMwYWMyYWI2YzVlOTNhNGFlNzgwNDRkNTMxZTk4NDQ3\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191224165931\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjVlNzM5YzFlMWY4YmRiMjBmNzk3NWRiNmU1ZGY0NDBl\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"054ba5416bad18e26ba1efdbc5514ea1e8b75d32\",\n        \"md5\" : \"cea2fb0ac6a29941d1b082a5b412851b\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjg4NDkxY2QxZDE4NWRkMTNiOWRjNjdjZmRkZGM2NjQx\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191224142428\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjc3MGIyMDQ3NDZmMjRhOTFjOTc3MmY0NGExYzk0ZDU0\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"34702edbd90c339851786ce442ae4ad94e360807\",\n        \"md5\" : \"846c4778ad7c209393574357ce8b30c8\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjZkZmRhMGE4NDNmNDIwMWQ0YTNhZjNjZTRjYTFlYjRh\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191224184236\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjNmNWNhZTAxNzYwMjMzYjYxNzQ5YTc0NGJjNTdmOWYw\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"306874c30b7f576695aa3ceaaec1618d3eedcda9\",\n        \"md5\" : \"73226953aedc39181dec27402bef7525\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjg4NDkxY2QxZDE4NWRkMTMxOGZkYmE0MzY0ZTc4NDA2\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/test/yt-fee-service/20191224130912\",\n    \"name\" : \"pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip\",\n      \"path\" : \"pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip\",\n      \"id\" : \"cGtnOjc3MGIyMDQ3NDZmMjRhOTE1YWY3MDFiZGM1YTE1Njc5\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"2d1830f5843bf5ce4ea3b9dffeab76c6485bfd7e\",\n        \"md5\" : \"4a5614bee9581d7526f3ab3f447c89b6\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmMwYWMyYWI2YzVlOTNhNGE5NGNmOTkwNTAwMDFiNDFi\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/test/yt-fee-service/20191224131815\",\n    \"name\" : \"pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip\",\n      \"path\" : \"pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip\",\n      \"id\" : \"cGtnOjVlNzM5YzFlMWY4YmRiMjAxMThkOTAwNTk1MTMyNWUw\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"f36393db8a039d0532a66e4eb34c3424906500aa\",\n        \"md5\" : \"d9e4db9963d9bd2fac0d90741a31ed9b\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjJhNTkwNDNlZDJlYTU1NmVkMzNkOWZjNDViNzg2NGQ3\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/uat/yt-fee-service/20191224131824\",\n    \"name\" : \"pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip\",\n      \"path\" : \"pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip\",\n      \"id\" : \"cGtnOjQwMjkyYWNkZWJjMDFiODM4MDkwNDk0ODk4YjYzZjRm\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"14746790b47c39faf70e5fdc3f3ff66940cb6c90\",\n        \"md5\" : \"11f46053dc040d1abcbdb6e2b10ad28f\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmRmYWQyMjkwMGVjMjRjOGI3NjNiOTJkMDg1OTUxMzBi\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/test/yt-fee-restapi/20191224130634\",\n    \"name\" : \"pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war\",\n      \"path\" : \"pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war\",\n      \"id\" : \"cGtnOjJlNDdkZGEwZjFiNTU1ZTBkNWY0OTU5MjMxMGMxZjgw\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"58151f3253009e3540f3f82f6b6141d99265306a\",\n        \"md5\" : \"89f95fe580f2d233ba01e82b4b35ade8\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmRmYWQyMjkwMGVjMjRjOGI5MDc5YWZmY2E3NDMyN2E1\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/upp/test/upp-all/20191224141001\",\n    \"name\" : \"upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjJlNDdkZGEwZjFiNTU1ZTBlMWM3ZjM2NGY4ODI1MzE4\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"8647e41650371b15ef715d5e3f20c7385c0c2f65\",\n        \"md5\" : \"3007c6fa6a0d21b847b07f9746377213\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmYxMGJkMDU5M2RlM2I1ZTQwZjZiYjUwMWRhMDFlYWJh\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191224192016\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOmY4OThiMzkwM2NiOTljNTk2MjU1Y2RlMzQ0NjdkNDhh\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"9d066496bcd7a92667575d710709d5982122f829\",\n        \"md5\" : \"28e9a14805ecf50b9b788c7185fe0b8f\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmRmYWQyMjkwMGVjMjRjOGI0MmRmMGQ0ZDczMmNmOTEy\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191224193330\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjJlNDdkZGEwZjFiNTU1ZTA1OTVhNWZhYTA2NTk1OWFh\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"2820300f5a38726658e4f136ad4fcddb217e031d\",\n        \"md5\" : \"d33e74e9260281ceb72c59582cf0114d\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjJhNTkwNDNlZDJlYTU1NmUyNGEyNjhiZjkxZDdlNDk0\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191224192907\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjQwMjkyYWNkZWJjMDFiODM2ZTNhZTkxZWY4NzQ1NTU3\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"cf72abb772de41fa38bc6485d7a942f465186324\",\n        \"md5\" : \"00fc944235a757e7f83d66f5760d3b42\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjJhNTkwNDNlZDJlYTU1NmViYTMwODYzYjg5MjI0MDMx\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225105513\",\n    \"name\" : \"med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjQwMjkyYWNkZWJjMDFiODM4YTZmMWRlYmE0MzYyMWM1\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"fe906aed0345528c887fbdf8de87208c6a41d93f\",\n        \"md5\" : \"76517ea58c9f493f686087c46f907851\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjg4NDkxY2QxZDE4NWRkMTMzOWZiMTM2YjhiYWNmNzVk\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225091727\",\n    \"name\" : \"med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjc3MGIyMDQ3NDZmMjRhOTExMmY0MGI2ODI1ZjMyYTZk\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"92b4e0bd7d25872d7f574d3897a73bb1a81474a7\",\n        \"md5\" : \"f1d668801354fee5378b3f334d7e4ca5\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjZkZmRhMGE4NDNmNDIwMWRkYzEyODg1MTQ0OGYwNDI3\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225103534\",\n    \"name\" : \"med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjNmNWNhZTAxNzYwMjMzYjZiMzNlMzhmY2E4OWJiNTgz\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"64432b14f1b315ae888d30e191fc55eb6801378b\",\n        \"md5\" : \"f05312aceb37c63172dba80d64c3844d\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmYxMGJkMDU5M2RlM2I1ZTQxZGM4MDU5MDdlOWExNTQ1\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225104508\",\n    \"name\" : \"med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOmY4OThiMzkwM2NiOTljNTljZmM5YjFkMmJiN2VhMWRm\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"34f47519bd18d912b1988b8203dc98ef883ff75d\",\n        \"md5\" : \"bf8c21d28b8811ae9fbec003655ef23a\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmMwYWMyYWI2YzVlOTNhNGEwNDY0Njg1NGUyMDI5ZWRi\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/test/upp-all/20191225103528\",\n    \"name\" : \"med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjVlNzM5YzFlMWY4YmRiMjBlOTFmMDI0NzYzMTM3NThm\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"f1cb41437a1183b605ad327dbc9866a232b120fd\",\n        \"md5\" : \"e22ccf632a625fdec3da4960136975e2\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmRmYWQyMjkwMGVjMjRjOGIwYzcyNGMyOWMyZDY0NDY0\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/yt-supervise-jiangsu/20191225113612\",\n    \"name\" : \"med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjJlNDdkZGEwZjFiNTU1ZTA1Y2RiYzE2YjZkMDZhNmJm\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"e8bffaaad50b2b3dac78ecc196a150d84a0e029a\",\n        \"md5\" : \"aecc53d17466ddaa3714640a96e5c0d1\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjg4NDkxY2QxZDE4NWRkMTM5YmVjOTgyMDJlNDdmMGI5\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/pay/uat/ytd-pf-web/20191225134636\",\n    \"name\" : \"pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war\",\n      \"path\" : \"pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war\",\n      \"id\" : \"cGtnOjc3MGIyMDQ3NDZmMjRhOTE2ZThkZGQwNDFlMTNjMjY2\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"6a2f46cacfed5103d6a67de690f49d9408940a8c\",\n        \"md5\" : \"807c5ea56340ac49611c7b1fa438e5e5\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmMwYWMyYWI2YzVlOTNhNGE3OTNlNTBiNDNjMzFmYWY2\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225143018\",\n    \"name\" : \"med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjVlNzM5YzFlMWY4YmRiMjBjZGIwZGIyYWIyMjE1OTAz\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"0583b9e95ba22122d976a31cb6fcd88aa81c44bd\",\n        \"md5\" : \"712c319aea869b5846709b62d2aceac9\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjZkZmRhMGE4NDNmNDIwMWQ0OWYxMmQ4MWE5MDc1NDMw\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225144501\",\n    \"name\" : \"med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjNmNWNhZTAxNzYwMjMzYjYwZmY4MzkwZDQ3ZmE0MGI4\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"51bec499a4566b0824cb7289c0321991f5400a6f\",\n        \"md5\" : \"6cb60bad51db84a8c1ff25f88221138a\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmYxMGJkMDU5M2RlM2I1ZTRjODBjNGRiOTEzOTNkMGJj\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225150010\",\n    \"name\" : \"med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOmY4OThiMzkwM2NiOTljNTllZjQyYTUxYmQ0M2JlY2Iz\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"9f19d40cbb58cdced27e7784d9f41dd385e769d9\",\n        \"md5\" : \"44de1a39561ac2e8d339266bf8958a5b\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOjJhNTkwNDNlZDJlYTU1NmU1NWQ3YTQ2OWVmZjhjZTAw\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225161135\",\n    \"name\" : \"med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjQwMjkyYWNkZWJjMDFiODNjMTRhMzEyODNiOTdhMjM0\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"24f0c5f62609e18176ff7a7cf1af87533a09fa5c\",\n        \"md5\" : \"d216d17ccc552aada4e3f59db49defc0\"\n      }\n    } ]\n  }, {\n    \"id\" : \"cGtnOmRmYWQyMjkwMGVjMjRjOGI5ZDJiM2NlM2M2ODc3YTQ2\",\n    \"repository\" : \"pkg\",\n    \"format\" : \"raw\",\n    \"group\" : \"/med3/uat/upp-all/20191225164907\",\n    \"name\" : \"med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip\",\n    \"version\" : null,\n    \"assets\" : [ {\n      \"downloadUrl\" : \"http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip\",\n      \"path\" : \"med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip\",\n      \"id\" : \"cGtnOjJlNDdkZGEwZjFiNTU1ZTAyZjRmZWNjZDc5OTRlMTVj\",\n      \"repository\" : \"pkg\",\n      \"format\" : \"raw\",\n      \"checksum\" : {\n        \"sha1\" : \"9b8f244a135f78a49b6642592bc912760356bf41\",\n        \"md5\" : \"a3b0ae632732a0ee660e6e989b3737da\"\n      }\n    } ]\n  } ],\n  \"continuationToken\" : null\n}", 
        "content_length": "19356", 
        "content_type": "application/json", 
        "cookies": {}, 
        "cookies_string": "", 
        "date": "Wed, 25 Dec 2019 08:56:59 GMT", 
        "elapsed": 0, 
        "failed": false, 
        "json": {
            "continuationToken": null, 
            "items": [
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "353a4f737789ee51a153a12c17e71026", 
                                "sha1": "98be5a90ada961727e56a1980186a9142423d082"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjNmNWNhZTAxNzYwMjMzYjZjM2NiMTFmODIzNDlmNGQz", 
                            "path": "pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/test/yt-fee-service/20191224131820", 
                    "id": "cGtnOjZkZmRhMGE4NDNmNDIwMWQ4NTgxZmI5NGMwZWZjNTU2", 
                    "name": "pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "af4f735856d56df2049c445d6e24bb25", 
                                "sha1": "577b059f3ffb1ecdf85b515b1a93bff465b794c2"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOmY4OThiMzkwM2NiOTljNTkxMmVjMzZlN2ZlZDhkNTQ3", 
                            "path": "pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/test/yt-fee-service/20191224131818", 
                    "id": "cGtnOmYxMGJkMDU5M2RlM2I1ZTQ5YTliODZhYWNhZjhjMjBi", 
                    "name": "pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "cea2fb0ac6a29941d1b082a5b412851b", 
                                "sha1": "054ba5416bad18e26ba1efdbc5514ea1e8b75d32"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjVlNzM5YzFlMWY4YmRiMjBmNzk3NWRiNmU1ZGY0NDBl", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191224165931", 
                    "id": "cGtnOmMwYWMyYWI2YzVlOTNhNGFlNzgwNDRkNTMxZTk4NDQ3", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "846c4778ad7c209393574357ce8b30c8", 
                                "sha1": "34702edbd90c339851786ce442ae4ad94e360807"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjc3MGIyMDQ3NDZmMjRhOTFjOTc3MmY0NGExYzk0ZDU0", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191224142428", 
                    "id": "cGtnOjg4NDkxY2QxZDE4NWRkMTNiOWRjNjdjZmRkZGM2NjQx", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "73226953aedc39181dec27402bef7525", 
                                "sha1": "306874c30b7f576695aa3ceaaec1618d3eedcda9"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjNmNWNhZTAxNzYwMjMzYjYxNzQ5YTc0NGJjNTdmOWYw", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191224184236", 
                    "id": "cGtnOjZkZmRhMGE4NDNmNDIwMWQ0YTNhZjNjZTRjYTFlYjRh", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "4a5614bee9581d7526f3ab3f447c89b6", 
                                "sha1": "2d1830f5843bf5ce4ea3b9dffeab76c6485bfd7e"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjc3MGIyMDQ3NDZmMjRhOTE1YWY3MDFiZGM1YTE1Njc5", 
                            "path": "pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/test/yt-fee-service/20191224130912", 
                    "id": "cGtnOjg4NDkxY2QxZDE4NWRkMTMxOGZkYmE0MzY0ZTc4NDA2", 
                    "name": "pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "d9e4db9963d9bd2fac0d90741a31ed9b", 
                                "sha1": "f36393db8a039d0532a66e4eb34c3424906500aa"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjVlNzM5YzFlMWY4YmRiMjAxMThkOTAwNTk1MTMyNWUw", 
                            "path": "pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/test/yt-fee-service/20191224131815", 
                    "id": "cGtnOmMwYWMyYWI2YzVlOTNhNGE5NGNmOTkwNTAwMDFiNDFi", 
                    "name": "pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "11f46053dc040d1abcbdb6e2b10ad28f", 
                                "sha1": "14746790b47c39faf70e5fdc3f3ff66940cb6c90"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjQwMjkyYWNkZWJjMDFiODM4MDkwNDk0ODk4YjYzZjRm", 
                            "path": "pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/uat/yt-fee-service/20191224131824", 
                    "id": "cGtnOjJhNTkwNDNlZDJlYTU1NmVkMzNkOWZjNDViNzg2NGQ3", 
                    "name": "pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "89f95fe580f2d233ba01e82b4b35ade8", 
                                "sha1": "58151f3253009e3540f3f82f6b6141d99265306a"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war", 
                            "format": "raw", 
                            "id": "cGtnOjJlNDdkZGEwZjFiNTU1ZTBkNWY0OTU5MjMxMGMxZjgw", 
                            "path": "pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/test/yt-fee-restapi/20191224130634", 
                    "id": "cGtnOmRmYWQyMjkwMGVjMjRjOGI3NjNiOTJkMDg1OTUxMzBi", 
                    "name": "pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "3007c6fa6a0d21b847b07f9746377213", 
                                "sha1": "8647e41650371b15ef715d5e3f20c7385c0c2f65"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjJlNDdkZGEwZjFiNTU1ZTBlMWM3ZjM2NGY4ODI1MzE4", 
                            "path": "upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/upp/test/upp-all/20191224141001", 
                    "id": "cGtnOmRmYWQyMjkwMGVjMjRjOGI5MDc5YWZmY2E3NDMyN2E1", 
                    "name": "upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "28e9a14805ecf50b9b788c7185fe0b8f", 
                                "sha1": "9d066496bcd7a92667575d710709d5982122f829"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOmY4OThiMzkwM2NiOTljNTk2MjU1Y2RlMzQ0NjdkNDhh", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191224192016", 
                    "id": "cGtnOmYxMGJkMDU5M2RlM2I1ZTQwZjZiYjUwMWRhMDFlYWJh", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "d33e74e9260281ceb72c59582cf0114d", 
                                "sha1": "2820300f5a38726658e4f136ad4fcddb217e031d"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjJlNDdkZGEwZjFiNTU1ZTA1OTVhNWZhYTA2NTk1OWFh", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191224193330", 
                    "id": "cGtnOmRmYWQyMjkwMGVjMjRjOGI0MmRmMGQ0ZDczMmNmOTEy", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "00fc944235a757e7f83d66f5760d3b42", 
                                "sha1": "cf72abb772de41fa38bc6485d7a942f465186324"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjQwMjkyYWNkZWJjMDFiODM2ZTNhZTkxZWY4NzQ1NTU3", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191224192907", 
                    "id": "cGtnOjJhNTkwNDNlZDJlYTU1NmUyNGEyNjhiZjkxZDdlNDk0", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "76517ea58c9f493f686087c46f907851", 
                                "sha1": "fe906aed0345528c887fbdf8de87208c6a41d93f"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjQwMjkyYWNkZWJjMDFiODM4YTZmMWRlYmE0MzYyMWM1", 
                            "path": "med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225105513", 
                    "id": "cGtnOjJhNTkwNDNlZDJlYTU1NmViYTMwODYzYjg5MjI0MDMx", 
                    "name": "med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "f1d668801354fee5378b3f334d7e4ca5", 
                                "sha1": "92b4e0bd7d25872d7f574d3897a73bb1a81474a7"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjc3MGIyMDQ3NDZmMjRhOTExMmY0MGI2ODI1ZjMyYTZk", 
                            "path": "med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225091727", 
                    "id": "cGtnOjg4NDkxY2QxZDE4NWRkMTMzOWZiMTM2YjhiYWNmNzVk", 
                    "name": "med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "f05312aceb37c63172dba80d64c3844d", 
                                "sha1": "64432b14f1b315ae888d30e191fc55eb6801378b"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjNmNWNhZTAxNzYwMjMzYjZiMzNlMzhmY2E4OWJiNTgz", 
                            "path": "med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225103534", 
                    "id": "cGtnOjZkZmRhMGE4NDNmNDIwMWRkYzEyODg1MTQ0OGYwNDI3", 
                    "name": "med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "bf8c21d28b8811ae9fbec003655ef23a", 
                                "sha1": "34f47519bd18d912b1988b8203dc98ef883ff75d"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOmY4OThiMzkwM2NiOTljNTljZmM5YjFkMmJiN2VhMWRm", 
                            "path": "med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225104508", 
                    "id": "cGtnOmYxMGJkMDU5M2RlM2I1ZTQxZGM4MDU5MDdlOWExNTQ1", 
                    "name": "med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "e22ccf632a625fdec3da4960136975e2", 
                                "sha1": "f1cb41437a1183b605ad327dbc9866a232b120fd"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjVlNzM5YzFlMWY4YmRiMjBlOTFmMDI0NzYzMTM3NThm", 
                            "path": "med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/test/upp-all/20191225103528", 
                    "id": "cGtnOmMwYWMyYWI2YzVlOTNhNGEwNDY0Njg1NGUyMDI5ZWRi", 
                    "name": "med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "aecc53d17466ddaa3714640a96e5c0d1", 
                                "sha1": "e8bffaaad50b2b3dac78ecc196a150d84a0e029a"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjJlNDdkZGEwZjFiNTU1ZTA1Y2RiYzE2YjZkMDZhNmJm", 
                            "path": "med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/yt-supervise-jiangsu/20191225113612", 
                    "id": "cGtnOmRmYWQyMjkwMGVjMjRjOGIwYzcyNGMyOWMyZDY0NDY0", 
                    "name": "med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "807c5ea56340ac49611c7b1fa438e5e5", 
                                "sha1": "6a2f46cacfed5103d6a67de690f49d9408940a8c"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war", 
                            "format": "raw", 
                            "id": "cGtnOjc3MGIyMDQ3NDZmMjRhOTE2ZThkZGQwNDFlMTNjMjY2", 
                            "path": "pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/pay/uat/ytd-pf-web/20191225134636", 
                    "id": "cGtnOjg4NDkxY2QxZDE4NWRkMTM5YmVjOTgyMDJlNDdmMGI5", 
                    "name": "pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "712c319aea869b5846709b62d2aceac9", 
                                "sha1": "0583b9e95ba22122d976a31cb6fcd88aa81c44bd"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjVlNzM5YzFlMWY4YmRiMjBjZGIwZGIyYWIyMjE1OTAz", 
                            "path": "med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225143018", 
                    "id": "cGtnOmMwYWMyYWI2YzVlOTNhNGE3OTNlNTBiNDNjMzFmYWY2", 
                    "name": "med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "6cb60bad51db84a8c1ff25f88221138a", 
                                "sha1": "51bec499a4566b0824cb7289c0321991f5400a6f"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjNmNWNhZTAxNzYwMjMzYjYwZmY4MzkwZDQ3ZmE0MGI4", 
                            "path": "med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225144501", 
                    "id": "cGtnOjZkZmRhMGE4NDNmNDIwMWQ0OWYxMmQ4MWE5MDc1NDMw", 
                    "name": "med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "44de1a39561ac2e8d339266bf8958a5b", 
                                "sha1": "9f19d40cbb58cdced27e7784d9f41dd385e769d9"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOmY4OThiMzkwM2NiOTljNTllZjQyYTUxYmQ0M2JlY2Iz", 
                            "path": "med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225150010", 
                    "id": "cGtnOmYxMGJkMDU5M2RlM2I1ZTRjODBjNGRiOTEzOTNkMGJj", 
                    "name": "med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "d216d17ccc552aada4e3f59db49defc0", 
                                "sha1": "24f0c5f62609e18176ff7a7cf1af87533a09fa5c"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjQwMjkyYWNkZWJjMDFiODNjMTRhMzEyODNiOTdhMjM0", 
                            "path": "med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225161135", 
                    "id": "cGtnOjJhNTkwNDNlZDJlYTU1NmU1NWQ3YTQ2OWVmZjhjZTAw", 
                    "name": "med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }, 
                {
                    "assets": [
                        {
                            "checksum": {
                                "md5": "a3b0ae632732a0ee660e6e989b3737da", 
                                "sha1": "9b8f244a135f78a49b6642592bc912760356bf41"
                            }, 
                            "downloadUrl": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip", 
                            "format": "raw", 
                            "id": "cGtnOjJlNDdkZGEwZjFiNTU1ZTAyZjRmZWNjZDc5OTRlMTVj", 
                            "path": "med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip", 
                            "repository": "pkg"
                        }
                    ], 
                    "format": "raw", 
                    "group": "/med3/uat/upp-all/20191225164907", 
                    "id": "cGtnOmRmYWQyMjkwMGVjMjRjOGI5ZDJiM2NlM2M2ODc3YTQ2", 
                    "name": "med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip", 
                    "repository": "pkg", 
                    "version": null
                }
            ]
        }, 
        "msg": "OK (19356 bytes)", 
        "redirected": false, 
        "server": "Nexus/3.20.1-01 (OSS)", 
        "status": 200, 
        "url": "http://192.168.132.37:7443/service/rest/v1/search?repository=pkg", 
        "x_content_type_options": "nosniff"
    }
}

TASK [nexus url info] *************************************************************************************************************************************************
ok: [192.168.132.37]

TASK [debug] **********************************************************************************************************************************************************
ok: [192.168.132.37] => {
    "url_info": [
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war", 
        "http://192.168.132.37:7443/repository/pkg/upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip"
    ]
}

PLAY RECAP ************************************************************************************************************************************************************
192.168.132.37             : ok=4    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

理解的意思

  1. 对结果按照字符进行筛选后,在按照日期进行排序,取日期最新的条目。

解决方案

  1. 使用 shell 模块,把结果集输出,使用 grep 和 sort 结合取值。
  2. 使用 filter 插件,从结果集中筛选并取出

demo

---
- hosts: localhost
  gather_facts: False
  vars:
  - url_info: [
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war", 
        "http://192.168.132.37:7443/repository/pkg/upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip"
    ]

  tasks:
    - debug: var=url_info
    - shell: echo -e {{ url_info | join("\\n")}} | grep med3|grep uat  |grep upp-all |sort -rh  |head -n1
      register: result
    - debug: var=result.stdout
    - debug: msg={{ url_info | get_last("med3", "uat", "upp-all")}}

filter

# cat filter_plugins/get.py
def sortInt(elem):
    t = elem.split('/')
    return int(t[8])


def search(item, s):
    result = []
    for value in item:
        if s in value:
            result.append(value)
    return result


def get_last(item, *args):
    for a in args:
        item = search(item, a)
    item.sort(key=sortInt, reverse=True)
    return item[0]

class FilterModule(object):
    """Filters for working with output from hostvars check_result"""

    def filters(self):
        return {
            'get_last': get_last
        }

执行结果

ansible-playbook tf.yaml 

PLAY [localhost] *******************************************************************************************************

TASK [debug] ***********************************************************************************************************
ok: [localhost] => {
    "url_info": [
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131820/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131818/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224165931/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224142428/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224184236/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224130912/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-service/20191224131815/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/uat/yt-fee-service/20191224131824/yt-fee-service-bin-1.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/test/yt-fee-restapi/20191224130634/yt-fee-restapi.war", 
        "http://192.168.132.37:7443/repository/pkg/upp/test/upp-all/20191224141001/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192016/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224193330/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191224192907/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225105513/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225091727/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225103534/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225104508/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/test/upp-all/20191225103528/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/yt-supervise-jiangsu/20191225113612/yt-supervise-jiangsu-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/pay/uat/ytd-pf-web/20191225134636/ytd-pf-web.war", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225143018/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225144501/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225150010/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225161135/upp-all-bin-1.0.0.zip", 
        "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip"
    ]
}

TASK [shell] ***********************************************************************************************************
changed: [localhost]

TASK [debug] ***********************************************************************************************************
ok: [localhost] => {
    "result.stdout": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip"
}

TASK [debug] ***********************************************************************************************************
ok: [localhost] => {
    "msg": "http://192.168.132.37:7443/repository/pkg/med3/uat/upp-all/20191225164907/upp-all-bin-1.0.0.zip"
}

PLAY RECAP *************************************************************************************************************
localhost                  : ok=4    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册