tmullender / ansible-maven-plugin

A Maven plugin to facilitate running Ansible adhoc commands and playbooks
MIT License
30 stars 10 forks source link

Display output depending on a settings #8

Closed astik closed 9 years ago

astik commented 9 years ago

It would be very useful to have Ansible output processed on maven output to monitor what happens during the process. Right now the output is available with the "--debug" maven flag which turns the whole maven into debug mode, too much verbosity, I'd like only Ansible to be verbose =)

In AbstractAnsibleMojo.java, there is this line of code

getLog().debug(outputLine);

Could it be possible to change verbosity depending on a plugin settings, for example ansible.promoteDebugAsInfo ? In that case, code could be :

if (promoteDebugAsInfo) {
    getLog().info(outputLine);
} else {
    getLog().debug(outputLine);
}