Commit baa8697f authored by Tim Brown's avatar Tim Brown

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.
parent 2fd3f64a
...@@ -69,7 +69,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { ...@@ -69,7 +69,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
// Defaults // Defaults
if p.config.Command == "" { if p.config.Command == "" {
p.config.Command = "ansible-playbook" p.config.Command = "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook"
} }
if p.config.StagingDir == "" { if p.config.StagingDir == "" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment