mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 01:30:06 -04:00
fix arg order
This commit is contained in:
parent
688ed63edf
commit
e6670fc4a0
1 changed files with 3 additions and 2 deletions
|
|
@ -579,13 +579,14 @@ func (p *Provisioner) createCmdArgs(httpAddr, inventory, playbook, privKeyFile s
|
|||
args = append(args, "--ssh-extra-args", "-o IdentitiesOnly=yes")
|
||||
}
|
||||
|
||||
args = append(args, "-i", inventory, playbook)
|
||||
|
||||
args = append(args, p.config.ExtraArguments...)
|
||||
|
||||
if len(p.config.AnsibleEnvVars) > 0 {
|
||||
envVars = append(envVars, p.config.AnsibleEnvVars...)
|
||||
}
|
||||
|
||||
// This must be the last arg appended to args
|
||||
args = append(args, "-i", inventory, playbook)
|
||||
return args, envVars
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue