diff --git a/internal/common/ansible/runner.go b/internal/common/ansible/runner.go index 6b57e05b..5d9d50c5 100644 --- a/internal/common/ansible/runner.go +++ b/internal/common/ansible/runner.go @@ -37,8 +37,8 @@ func GetStdout(events []messageModel.PlaybookRunResponseMessageYamlEventsElem, h continue } - if event.Stdout != nil { - result += *event.Stdout + if event.Stdout != nil && len(event.Stdout) > 0 { + result += *event.Stdout + "\n" } }