diff --git a/bin/ansible b/bin/ansible index 8fbc5090471..2c8c6f3d22b 100755 --- a/bin/ansible +++ b/bin/ansible @@ -43,10 +43,11 @@ from ansible.utils.display import Display if __name__ == '__main__': cli = None - display = Display() me = os.path.basename(sys.argv[0]) try: + display = Display() + if me == 'ansible-playbook': from ansible.cli.playbook import PlaybookCLI as mycli elif me == 'ansible':