1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Show the ansible version if invoked with more than one -v (#22091)

* Show the ansible version if invoked with more than one -v

* use display.vv directly
This commit is contained in:
Adrian Likins 2017-05-24 14:45:35 -04:00 committed by Brian Coca
parent 272125023f
commit ea3914f438

View file

@ -158,11 +158,12 @@ class CLI(with_metaclass(ABCMeta, object)):
running an Ansible command. running an Ansible command.
""" """
if self.options.verbosity > 0: display.vv(self.parser.get_version())
if C.CONFIG_FILE: if C.CONFIG_FILE:
display.display(u"Using %s as config file" % to_text(C.CONFIG_FILE)) display.v(u"Using %s as config file" % to_text(C.CONFIG_FILE))
else: else:
display.display(u"No config file found; using defaults") display.v(u"No config file found; using defaults")
@staticmethod @staticmethod
def ask_vault_passwords(): def ask_vault_passwords():