New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log which task ended the play #61796
base: devel
Are you sure you want to change the base?
Conversation
you should be able to do the same with a callback and not change it for all users. |
This is a simplified version of a playbook I use:
If I run the latest version of ansible from the git checkout of the devel branch I get this output:
If I increase verbosity I get:
After increasing verbosity it tells the meta end_play triggered the play to finish, but they do not tell where and why it ended. This is what my patch intends to do. So with my patch I get this:
with my patch and -vv the output is this:
|
Maybe this should be changed for all users? |
ready_for_review |
We have reviewed this and have decided to not accept this change. To get this information, you should be using a higher verbosity of at least If you have further questions please stop by IRC or the mailing list:
|
@sivel Right after opening the PR at #61796 (comment) |
Ok, I was under the impression that the task name of the In any case, this could be extended to the existing |
Before the change no information was available why a playbook has ended. By introducing this change information will be available which tells us which task invoked meta end_play.
51d56d9
to
56133df
Compare
note: fix should be that 'explicit' meta tasks should output as normal tasks. we use many 'implicit meta tasks, that only show output under -v levels of verbosity, those should still stay hidden and we should ensure we make the distinction in the engine. |
Before the change no information was available why a playbook has ended.
By introducing this change information will be available which tells us which
task invoked meta end_play.
SUMMARY
I have playbooks structured in a way that if certain conditions are met the play is ended for good reasons. This can happen in multiple places and also there are multiple checks in one of the playbooks. By adding this change ansible will log which task called the meta action to end the play.
PR #20799 is somewhat related.
ISSUE TYPE
COMPONENT NAME
core