Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action-plugins/ansible/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0-beta.3
1.5.0-beta.4
10 changes: 7 additions & 3 deletions action-plugins/ansible/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (p *Plugin) ExecuteTask(request plugins.ExecuteTaskRequest) (plugins.Respon
becomePass := ""
verbose := 0
private_key := ""
vault := false
vault_password_file := ""
vault_password := ""

Expand Down Expand Up @@ -185,6 +186,9 @@ func (p *Plugin) ExecuteTask(request plugins.ExecuteTaskRequest) (plugins.Respon
if param.Key == "private_key" {
private_key = param.Value
}
if param.Key == "vault" {
vault = param.Value == "true"
}
if param.Key == "vault_password_file" {
vault_password_file = param.Value
}
Expand Down Expand Up @@ -366,9 +370,9 @@ func (p *Plugin) ExecuteTask(request plugins.ExecuteTaskRequest) (plugins.Respon
ansiblePlaybookOptions.VerboseVVVV = true
}

if vault_password_file != "" && vault_password == "" {
if vault && (vault_password_file != "" && vault_password == "") {
ansiblePlaybookOptions.VaultPasswordFile = vault_password_file
} else if vault_password != "" {
} else if vault && vault_password != "" {
// create a temporary file with the vault password
tmpfile, err := os.CreateTemp("", "vault-password")
if err != nil {
Expand Down Expand Up @@ -706,7 +710,7 @@ func (p *Plugin) Info(request plugins.InfoRequest) (models.Plugin, error) {
var plugin = models.Plugin{
Name: "Ansible",
Type: "action",
Version: "1.5.0-beta.3",
Version: "1.5.0-beta.4",
Author: "JustNZ",
Action: models.Action{
Name: "Ansible",
Expand Down
Loading