Merge pull request #11050 from rainzm/nginx/test

fix(ansibleserver): correct playbook path and role path
This commit is contained in:
yunion-ci-robot
2021-05-13 11:55:56 +08:00
committed by GitHub
+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)