rdudyala | 996d70b | 2016-10-13 17:40:55 +0000 | [diff] [blame^] | 1 | --- |
| 2 | - hosts: '{{ instance_name }}' |
| 3 | gather_facts: False |
| 4 | connection: ssh |
| 5 | user: ubuntu |
| 6 | sudo: yes |
| 7 | tasks: |
| 8 | - name : stopping onos service on {{ instance_name }} |
| 9 | uri: |
| 10 | url: http://{{ instance_name }}:5004/monitoring/agent/onos/stop |
| 11 | method: POST |
| 12 | body: '"target":"udp://9.9.9.9:4455", "meta_data": { "resources": ["onos://10.11.10.60:8181?auth=basic&user=onos&password=rocks&scheme=http","onos://10.11.10.61:8181?auth=basic&user=onos&password=rocks&scheme=http"]} ' |
| 13 | force_basic_auth: yes |
| 14 | status_code: 200 |
| 15 | body_format: json |
| 16 | - name: stopping openstack service on {{ instance_name }} |
| 17 | uri: |
| 18 | url: http://{{ instance_name }}:5004/monitoring/agent/openstack/stop |
| 19 | method: POST |
| 20 | body: '"target":"udp://9.9.9.9:4455"' |
| 21 | force_basic_auth: yes |
| 22 | status_code: 200 |
| 23 | body_format: json |