cli
cli copied to clipboard
Add option to enable Verbose logging for MAS CLI
Feature and motivation
The ansible playbooks offer the ability to collect more verbose logging by using the -vvv flag when running roles. The MAS CLI does not have this option, but when reviewing task logs you will still see messages related to this flag since the MAS CLI uses the ansible collection. Example:
TASK [ibm.mas_devops.ocp_provision : roks : Configure Private and Public Vlans] **************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IndexError: list index out of range
fatal: [localhost]: FAILED! => changed=false
There should be a way to pass this verbose flag when using the MAS CLI as well.
Usage example
This would make it easier to troubleshoot issues, especially for situations like the above error which directly reference enabling verbose logging for further explanation about the problem.