java.remove_service.yml 273 Bytes
- hosts: "{{service}}"
  vars: 
    gw_url: 10.66.70.3:8080/gateway
  tasks:
     - uri:
        url: http://{{gw_url}}/service_control/unregister?ip={{inventory_hostname}}&context={{service}}
       register: result
     - debug:
        var: result
  remote_user: root