Skip to content

Commit

Permalink
revert ansible change
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Aug 22, 2024
1 parent 190a29a commit f750ee3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/harness/tool/ansible/modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"io"
"os"
"path"

"k8s.io/klog/v2"

Expand All @@ -24,10 +25,13 @@ func NewPassthroughModifier(planFile string) v1.Modifier {
}

func (in *GlobalEnvModifier) Env(env []string) []string {
//ansibleHome := path.Join(in.workDir, ansibleDir)
//ansibleTmp := path.Join(ansibleHome, ansibleTmpDir)
ansibleHome := path.Join(in.workDir, ansibleDir)
ansibleTmp := path.Join(ansibleHome, ansibleTmpDir)

return env
return append(env,
fmt.Sprintf("ANSIBLE_HOME=%s", ansibleHome),
fmt.Sprintf("ANSIBLE_REMOTE_TMP=%s", ansibleTmp),
)
}

func NewGlobalEnvModifier(workDir string) v1.Modifier {
Expand Down

0 comments on commit f750ee3

Please sign in to comment.