Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Wait till SpotInst Group Instances are up
- uri:
- url: https://api.spotinst.io/aws/ec2/group/{{ sig }}/status
- method: GET
- headers:
- Authorization: Bearer {{ spotinst_token }}
- register: status_response
- until:
- - status_response.json.response.status.code == 200
- - status_response.json.response.get('items') != []
- - "{{ '\"instanceId\": null' not in status_response.json.response }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement