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:
parent
272125023f
commit
ea3914f438
1 changed files with 6 additions and 5 deletions
|
@ -158,11 +158,12 @@ class CLI(with_metaclass(ABCMeta, object)):
|
|||
running an Ansible command.
|
||||
"""
|
||||
|
||||
if self.options.verbosity > 0:
|
||||
display.vv(self.parser.get_version())
|
||||
|
||||
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:
|
||||
display.display(u"No config file found; using defaults")
|
||||
display.v(u"No config file found; using defaults")
|
||||
|
||||
@staticmethod
|
||||
def ask_vault_passwords():
|
||||
|
|
Loading…
Reference in a new issue