Skip to content
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 - Don't display plays if no tasks will run or if no hosts are matched #52909

Open
wants to merge 2 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@akatch
Copy link
Contributor

akatch commented Feb 25, 2019

SUMMARY

This PR will update unixy.py to not display output from plays with no matching hosts or tasks.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

unixy.py

ADDITIONAL INFORMATION

Output from empty plays does not spark joy

$ ansible-playbook test.yml -i qa -l lime

# Before
Executing playbook test.yml

- lime -
Gathering Facts...
  lime ok
debug...
  lime ok: {
    "changed": false,
    "msg": "hello world"
} | msg: hello world

- lime -

- purple -
  No hosts found!

- purple -
  No hosts found!

- Play recap -
  lime             : ok=2    changed=0    unreachable=0    failed=0

# After
Executing playbook test.yml
Gathering Facts...
  lime ok
debug...
  lime ok: {
    "changed": false,
    "msg": "hello world"
}

- Play recap -
  lime             : ok=2    changed=0    unreachable=0    failed=0
@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 25, 2019

@akatch this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@akatch akatch force-pushed the akatch:dont_display_empty_plays branch from 5cb5594 to 1c686f9 Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.