End ansible

HI team,

I have my ansible play book. where I am running the yaml scripting sequentially (which mean run one after another host serial -1)

As soon as I find the right host to set, I wanted to exit from the playbook and do not want to continue for further host.

end_play will end the particular execution but it is moving to another host. what is the command to exit completely from ansible scripting?

You have the module meta with end_play.