mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #11051 from rainzm/automated-cherry-pick-of-#11050-upstream-release-3.7
Automated cherry pick of #11050: fix(ansibleserver): correct playbook path and role path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user