-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Unixy stdout callback: Display name of play and list of play hosts #32810
Conversation
…on't display play name if no hosts in play
cc @akatch |
Gonna close this if there's no interest |
Wow, I'm so sorry I missed this. I'm testing this now. Thank you for working on it. |
This looks great, thanks again @theJohnnyBrown. |
Anybody want to merge this? The completionist in me wants to get it off my PR list |
cc @bcoca @nitzmahone ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@akatch just needs a 'shipit' from you, no need to wait for core to merge |
Don't display play name if no hosts in play
SUMMARY
Adds some logic to the unixy callback plugin's
v2_playbook_on_play_start
method to display the list of play hosts along with the play name, only when there are hosts in the playISSUE TYPE
COMPONENT NAME
lib/ansible/plugins/callback/unixy.py
ANSIBLE VERSION
ADDITIONAL INFORMATION
The suggestion was "don't display play name if no hosts in play", which I took to mean the
hosts
variable in the play definition. We could possibly use the computed list of hosts (PlaybookExecutor._get_serialized_batches
) in this logic but it would require changing the method signature (optional arg?) ofv2_playbook_on_play_start