mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-01 20:24:00 -04:00
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:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user