vovimayhem / vagrant-guest_ansible

Running Ansible in Vagrant Guests
MIT License
67 stars 29 forks source link

Unbuffered output for seeing the progress of an ansible run #3

Closed tknerr closed 9 years ago

tknerr commented 9 years ago

Previously the whole ansible run was buffered. It would run for e.g. 15 minutes and you would see nothing until the run completed or failed.

By setting PYTHONUNBUFFERED=1 the output will be flushed immediately (or at least more often) so you can see the progress of the ansible run.

Also added ANSIBLE_FORCE_COLOR=true to get the green (stdout) / red (stderr) colored output as configured in provisioner.rb