# Can ansible retry to skip all previous successful roles?

**URL:** <https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673>\
**Category:** Ansible Project\
**Created:** [February 28, 2014, 11:19am UTC](https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673 "2014-02-28T11:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![linbo\_liao](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Post date:** [February 28, 2014, 11:19am UTC](https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673/1 "2014-02-28T11:19:23Z")

</div>

Hi,

Here I try to use ansible to deploy some apps, it has multi steps, for examples

roles:

- common
- nginxny
- …
- …
- app
- …

if deploy failed at app steps, retry will go through all steps from beginning. Any idea to retry started at app steps, since all steps before app are succeed.

Thanks,  
Linbo

---

<div class="post-metadata">

**Author:** ![Paul\_Durivage](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Post date:** [February 28, 2014, 1:05pm UTC](https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673/2 "2014-02-28T13:05:35Z")

</div>

The --start-at-task argument will allow you to choose the task to start at.

Alternatively, tags would also achieve what you’re looking for if you tagged the tasks or plays you want to run. [http://docs.ansible.com/playbooks\_tags.html](http://docs.ansible.com/playbooks_tags.html)

---

<div class="post-metadata">

**Author:** ![linbo\_liao](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Post date:** [March 1, 2014, 1:49am UTC](https://forum.ansible.com/t/can-ansible-retry-to-skip-all-previous-successful-roles/14673/3 "2014-03-01T01:49:41Z")

</div>

Thanks, I will have a try.

Thanks,  
Linbo

在 2014年2月28日星期五UTC+8下午9时05分35秒，Paul Durivage写道：
