tmullender / ansible-maven-plugin

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

allow colorful ansi output #12

Open abendt opened 7 years ago

abendt commented 7 years ago

Hey Tim,

i have a feature request. it would be nice to have colorful ansi output from my maven/ansible execution. looks like you'd need to pass an environment variable to the created ansible process (https://major.io/2014/06/25/get-colorful-ansible-output-in-jenkins/).

regards, Alphonse

tmullender commented 7 years ago

Hi Alphonse

Sorry for the slow reply. The environment for the process that runs ansible should be inherited from the mvn process, therefore if the property is set before the build is run it should be passed to ansible.

export ANSIBLE_FORCE_COLOR=true; mvn verify

Does this work for you or is there a reason for explicitly setting it within the plugin?

abendt commented 7 years ago

Hi Tim,

yes, it does work. In my opinion it would be nice to have an option within maven to keep the build self contained.

regards, Alphonse

Am 30.11.2016 um 22:01 schrieb Tim Mullender notifications@github.com<mailto:notifications@github.com>:

Hi Alphonse

Sorry for the slow reply. The environment for the process that runs ansible should be inherited from the mvn process, therefore if the property is set before the build is run it should be passed to ansible.

export ANSIBLE_FORCE_COLOR=true; mvn verify

Does this work for you or is there a reason for explicitly setting it within the plugin?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/tmullender/ansible-maven-plugin/issues/12#issuecomment-263994015, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAWohQC8sNNWIXE5OQze6FOG8GxpDvvCks5rDeQngaJpZM4K91MQ.