Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check possible cleanups if any of the deployment steps failed #22

Open
carlosbuenosvinos opened this issue Apr 18, 2015 · 4 comments
Open

Comments

@carlosbuenosvinos
Copy link
Member

No description provided.

@FlxPeters
Copy link
Contributor

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

@cbrunnkvist
Copy link
Contributor

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
Copy link
Contributor

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.

@FlxPeters
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants