Small typo correction

This commit is contained in:
Marc Mercer 2018-02-07 19:47:01 -08:00
parent 5d67f77f43
commit d3c7d43f20
No known key found for this signature in database
GPG Key ID: 95F997BD9E22C058
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator, pri
p.config.PackerBuildName, p.config.PackerBuilderType),
"-i", inventory, playbook}
if len(privKeyFile) > 0 {
// Changed this from using --private-key to supplying -e ansible_ssh_private_key as the latter
// Changed this from using --private-key to supplying -e ansible_ssh_private_key_file as the latter
// is treated as a highest priority variable, and thus prevents overriding by dynamic variables
// as seen in #5852
// args = append(args, "--private-key", privKeyFile)