Commit a932b932 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #829 from strcrzy/upload_ansible_playbooks_dir

provisioner/ansible: upload playbooks correctly
parents 86760466 75f64ef6
...@@ -137,7 +137,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error { ...@@ -137,7 +137,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
} }
for _, src := range p.config.PlaybookPaths { for _, src := range p.config.PlaybookPaths {
dst := filepath.Join(p.config.StagingDir, "playbooks", filepath.Base(src)) dst := filepath.Join(p.config.StagingDir, "playbooks", filepath.Base(src))
if err := p.uploadFile(ui, comm, dst, src); err != nil { if err := p.uploadDir(ui, comm, dst, src); err != nil {
return fmt.Errorf("Error uploading playbooks: %s", err) return fmt.Errorf("Error uploading playbooks: %s", err)
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment