Colorize Ansible output, and don't buffer output.

Setting environment variables for the ansible-playbook invocation.

ANSIBLE_FORCE_COLOR will ensure output is colorized.  PYTHONUNBUFFERED will stream output as Ansible runs, vs getting a big dump of output at the end.
This commit is contained in:
Tim Brown 2014-10-13 15:31:11 -07:00
parent 2fd3f64ab0
commit baa8697f5d
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
// Defaults
if p.config.Command == "" {
p.config.Command = "ansible-playbook"
p.config.Command = "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook"
}
if p.config.StagingDir == "" {