Can ansible retry to skip all previous successful roles?

496 views
Skip to first unread message

linbo liao

unread,
Feb 28, 2014, 6:19:23 AM2/28/14
to ansible...@googlegroups.com
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


Paul Durivage

unread,
Feb 28, 2014, 8:05:35 AM2/28/14
to ansible...@googlegroups.com
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
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c9dc3e67-917c-4e42-b340-677e9cfe1a1a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

linbo liao

unread,
Feb 28, 2014, 8:49:41 PM2/28/14
to ansible...@googlegroups.com
Thanks, I will have a try.

Thanks,
Linbo

在 2014年2月28日星期五UTC+8下午9时05分35秒,Paul Durivage写道:
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

On Friday, February 28, 2014, linbo liao <llb...@gmail.com> wrote:
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


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages