Skip to content

Instantly share code, notes, and snippets.

@piniv
Created March 17, 2019 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piniv/660a91c155cf03f1fe37296cef3fd5f3 to your computer and use it in GitHub Desktop.
Save piniv/660a91c155cf03f1fe37296cef3fd5f3 to your computer and use it in GitHub Desktop.
---
- block:
- block:
- import_tasks: dependencies.yml
- import_tasks: init.yml # facts
- import_tasks: deploy.yml
- import_tasks: finalize.yml
rescue:
- include_tasks: deploy-retry.yml
- name: Crap! Failed to retry - dump instance
fail: # trigger last rescue - slack + self terminate
when: deploy_complete is undefined
rescue:
- include_tasks: rescue.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment