From 1f4c8c1c767885ccd612005635164835935752c5 Mon Sep 17 00:00:00 2001 From: Jordan Hayes Date: Thu, 10 Feb 2022 12:01:42 -0800 Subject: [PATCH] Added ansible limit to args, again --- services/tasks/runner.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/tasks/runner.go b/services/tasks/runner.go index f433180b..14fae508 100644 --- a/services/tasks/runner.go +++ b/services/tasks/runner.go @@ -672,6 +672,11 @@ func (t *TaskRunner) getPlaybookArgs() (args []string, err error) { args = append(args, "--check") } + if t.task.Limit != "" { + t.log("--limit="+t.task.Limit) + args = append(args, "--limit="+t.task.Limit) + } + if t.template.VaultKeyID != nil { args = append(args, "--vault-password-file", t.template.VaultKey.GetPath()) }