Can ansible retry to skip all previous successful roles?

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

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

Thanks, I will have a try.

Thanks,
Linbo

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