Skip to content

Commit

Permalink
remove variables support in ansible for now
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Aug 22, 2024
1 parent 359049a commit 190a29a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pkg/harness/tool/ansible/ansible.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@ func (in *Ansible) init() *Ansible {
in.planFilePath = path.Join(in.execDir, in.planFileName)
helpers.EnsureFileOrDie(in.planFilePath, nil)

in.variablesFileName = "plural.variables.json"
helpers.EnsureFileOrDie(path.Join(in.execDir, in.variablesFileName), in.variables)

return in
}

// New creates an Ansible structure that implements v1.Tool interface.
func New(workDir, execDir string, variables *string) v1.Tool {
return (&Ansible{workDir: workDir, execDir: execDir, variables: variables}).init()
func New(workDir, execDir string) v1.Tool {
return (&Ansible{workDir: workDir, execDir: execDir}).init()
}
2 changes: 1 addition & 1 deletion pkg/harness/tool/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func New(stackType console.StackType, workDir, execDir string, variables *string
case console.StackTypeTerraform:
t = terraform.New(execDir, variables)
case console.StackTypeAnsible:
t = ansible.New(workDir, execDir, variables)
t = ansible.New(workDir, execDir)
case console.StackTypeCustom:
t = v1.New()
default:
Expand Down

0 comments on commit 190a29a

Please sign in to comment.