Continue the task where it fails in playbook

24 views
Skip to first unread message

anand...@greycampus.com

unread,
Oct 29, 2015, 1:50:46 AM10/29/15
to Ansible Project
I have written the playbook for mail server creation. For that i have written multiple individual yml files and put all those in main.yml.
so while executing this main.yml suppose it fails any yml file inside main.yml. that is as
in main.yml consists
- include: 123.yml
- include: 13.yml
- include: 12.yml
- include: 1234.yml
- include: 12345.yml
- include: 123567.yml

while exeuting main.yml if it fails at 12.yml . then  while executing again by --limit @/main.retry  it start from 123.yml.


so how to continue from where it fails i.e continue from 12.yml  while executing main.yml?????

Could you please provide me solution how to overcome this problem???

Mark Janssen

unread,
Oct 29, 2015, 8:08:07 AM10/29/15
to ansible...@googlegroups.com
--start-at-task="task name"


--
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/2f8968f6-1d53-4893-9382-2ab568225cf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mark Janssen  --  maniac(at)maniac.nl
Unix / Linux Open-Source and Internet Consultant
Maniac.nl Sig-IO.nl Vps.Stoned-IT.com

Reply all
Reply to author
Forward
0 new messages