Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. - name: Wait till SpotInst Group Instances are up
  2. uri:
  3. url: https://api.spotinst.io/aws/ec2/group/{{ sig }}/status
  4. method: GET
  5. headers:
  6. Authorization: Bearer {{ spotinst_token }}
  7. register: status_response
  8. until:
  9. - status_response.json.response.status.code == 200
  10. - status_response.json.response.get('items') != []
  11. - "{{ '\"instanceId\": null' not in status_response.json.response }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement