fix(ansibleserver): correct playbook path

This commit is contained in:
rainzm
2021-05-12 16:21:33 +08:00
parent 7f1f68b57c
commit cb410623d4
+1 -1
View File
@@ -84,7 +84,7 @@ func (r runnable) Run(ctx context.Context) (err error) {
// write out playbook
playbook := r.GetPlaybookPath()
if len(playbook) == 0 {
playbook := filepath.Join(tmpdir, "playbook")
playbook = filepath.Join(tmpdir, "playbook")
err = ioutil.WriteFile(playbook, []byte(r.GetPlaybook()), os.FileMode(0600))
if err != nil {
err = errors.Wrapf(err, "writing playbook %s", playbook)