diff --git a/provisioner/ansible/provisioner.go b/provisioner/ansible/provisioner.go index 53cfd63ff..c6d0d6f1c 100644 --- a/provisioner/ansible/provisioner.go +++ b/provisioner/ansible/provisioner.go @@ -645,7 +645,7 @@ func (p *Provisioner) executeGalaxy(ui packer.Ui, comm packer.Communicator) erro } // Add collections_path argument if specified if p.config.CollectionsPath != "" { - collectionArgs = append(roleArgs, "-p", filepath.ToSlash(p.config.CollectionsPath)) + collectionArgs = append(collectionArgs, "-p", filepath.ToSlash(p.config.CollectionsPath)) } roleInstallError := p.invokeGalaxyCommand(roleArgs, ui, comm)