deploy
deploy copied to clipboard
Check possible cleanups if any of the deployment steps failed
I think the rescue feature of ansible 2 will do the job
I think we can register results and check them later before bailing out, i.e.
- name: update current symlink
register: symlink_result
...
- name: cleanup failed release
when: symlink_result|failed and ansistrano_cleanup_after_failure
...
see http://docs.ansible.com/ansible/playbooks_filters.html#filters-often-used-with-conditionals
Uh, no, I'm wrong. Like @FlxPeters said, we will be able to solve this in a clean manner after Ansistrano v2.0 is released.
Do you have any plans about the 2.x branch? I think it would be great to start this. Ansible 2.x is there for quiet a time now.