mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 09:44:01 -04:00
fix arg order
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user