deploy icon indicating copy to clipboard operation
deploy copied to clipboard

Check possible cleanups if any of the deployment steps failed

Open carlosbuenosvinos opened this issue 9 years ago • 4 comments

carlosbuenosvinos avatar Apr 18 '15 09:04 carlosbuenosvinos

I think the rescue feature of ansible 2 will do the job

FlxPeters avatar Jul 22 '15 20:07 FlxPeters

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

cbrunnkvist avatar Jul 23 '15 05:07 cbrunnkvist

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.

cbrunnkvist avatar Jul 25 '15 07:07 cbrunnkvist

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.

FlxPeters avatar Jul 20 '16 20:07 FlxPeters