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:
parent
2fd3f64ab0
commit
baa8697f5d
|
@ -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 == "" {
|
||||
|
|
Loading…
Reference in New Issue